The FormatDateTime function formats dates and times.
There is one mandatory arguments.
Date
The Date argument is any valid date expression.
Code: <% =FormatDateTime("6/26/1943") %> <% =FormatDateTime("15:34") %>
Output: 6/26/43 3:34:00 PM
There is one optional arguments.
DateFormat
The optional DateFormat argument must use the constant or value from the Date Format CONSTANTS.
Code: <% =FormatDateTime("6/26/1943", 1) %> <% =FormatDateTime("3:34:00 PM", 4) %>
Output: Saturday, June 26, 1943 15:34