Formats a specified string as a date value.


FormatDate(1, 2, 3, 4)

Function Properties

1stringRequiredValue to receive the specified formatting using either MM/dd/yyyy or YYYY-MM-DD format
2stringDate format string used to format the specified value. A value of l returns a long text value. A value of s returns a short text value. A value of iso returns an ISO-compliant value. A value of rfc returns a RFC-1123-compliant value.
3stringTime format string used the formation the specified value
4stringCulture code used to indicate the correct date format


Review AMPscript Date and Time Formatting for available values.

System returns: