date.formatDate
Description
Format a date using a format string.
Parameters
date
string
Return value
formattedDate
string
Example
-- 15/01/2023
print(date.formatDate("2023-01-15", "dd/mm/yyyy"))
-- Sunday 15-01-2023
print(date.formatDate("2023-01-15", "dddd dd-mm-yyyy"))
Comments
See also
Back
Generated on the 26 June 2024 at 22:01:28 (UK Time)