Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.4 KiB
Plaintext
Raw Normal View History

{
"name": "to_date",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Conversions", "Date and Time"],
"description": "Converts a string into a date object. An optional format string can be provided to parse the string; see <a href='https://doc.qt.io/qt-5/qdate.html#fromString-2'>QDate::fromString</a> or the documentation of the format_date function for additional documentation on the format. By default the current QGIS user locale is used.",
2022-01-13 08:56:17 -05:00
"arguments": [{
"arg": "string",
"description": "string representing a date value"
}, {
"arg": "format",
"optional": true,
"description": "format used to convert the string into a date"
}, {
"arg": "language",
"optional": true,
"description": "language (lowercase, two- or three-letter, ISO 639 language code) used to convert the string into a date. By default the current QGIS user locale is used."
}],
"examples": [{
"expression": "to_date('2012-05-04')",
"returns": "2012-05-04"
}, {
"expression": "to_date('June 29, 2019','MMMM d, yyyy')",
"returns": "2019-06-29, if the current locale uses the name 'June' for the sixth month, otherwise an error occurs"
}, {
"expression": "to_date('29 juin, 2019','d MMMM, yyyy','fr')",
"returns": "2019-06-29"
}],
"tags": ["provided", "additional", "user", "format_date", "parse", "qdate", "converts", "default", "current", "format", "object", "fromstring", "date", "optional", "documentation", "see"]
}