Skip to content

Commit

Permalink
format_date function does not only take and output date
Browse files Browse the repository at this point in the history
datetime or time can be used to output something else
  • Loading branch information
DelazJ authored and nyalldawson committed Mar 8, 2021
1 parent 15c83ff commit 5b1f0b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/function_help/json/format_date
Expand Up @@ -9,6 +9,9 @@
{"arg":"language","optional":true,"description":"language (lowercase, two- or three-letter, <a href='https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes'>ISO 639 language code</a>) used to format the date into a custom string"}
],
"examples": [ { "expression":"format_date('2012-05-15','dd.MM.yyyy')", "returns":"'15.05.2012'"},
{ "expression":"format_date('2012-05-15','d MMMM yyyy','fr')", "returns":"'15 mai 2012'"}
{ "expression":"format_date('2012-05-15','d MMMM yyyy','fr')", "returns":"'15 mai 2012'"},
{ "expression":"format_date('2012-05-15','dddd')", "returns":"'Tuesday'"},
{ "expression":"format_date('2012-05-15 13:54:20','dd.MM.yy')", "returns":"'15.05.12'"},
{ "expression":"format_date('13:54:20','hh:mm AP')", "returns":"'01:54 PM'"}
]
}

0 comments on commit 5b1f0b2

Please sign in to comment.