Page History
...
Locale | Short Format | Long Format |
---|---|---|
en-US | 1/14/2020 | Tuesday, January 14, 2020 |
es-ES | 14/01/2020 | martes, 14 de enero de 2020 |
fr-FR | 14/01/2020 | mardi 14 janvier 2020 |
If you omit Format or set it "", then "Short" will be used.
...
Code Block | ||
---|---|---|
| ||
// Create an OI date Date = SRP_Date("Encode", 2020, 1, 14) // Format a date using the default format and the current locale Text = SRP_Date("Format", Date) // Format a date using the long format and the current locale Text = SRP_Date("Format", Date, "Long") // Format a date using the long format and the Spanish language Text = SRP_Date("Format", Date, "Long", "es") // Format a date using a custom format and the Spanish-MEXICAN language Text = SRP_Date("Format", Date, "MMMM D, YYYY", "es-MX") |
...