Algosim documentation: DateString

DateString

Returns a textual representation of a date in the default format of a specified locale.

Syntax

Description

If d is a date and ls a locale specifier in the “language-COUNTRY” format, then DateString(d, ls) returns a string with d formatted in the default date format of ls.

If ls is omitted omitted, the system’s current locale is used.

Examples

DateString(now(), "sv-SE")
2020-09-05
DateString(now(), "en-US")
9/5/2020
DateString(now(), "en-GB")
05/09/2020
DateString(now(), "pt-PT")
05-09-2020
DateString(now(), "ru-RU")
05.09.2020

See also