Returns a date formatted as a string.
Category: | Date and Time |
Returned data type: | String |
Note: | The returned value is a string with the date formatted as a string. |
// Declare a date variable and initialize // it to a value date dateval dateval = #2010-02-12# // Declare the formatted date variable string fmtdate fmtdate = formatdate(dteval, "MM/DD/YY") Results: 02/12/10
// Declare a date variable and initialize // it to a value date dateval dateval = #2010-02-12# // Declare the formatted date variable string fmtdate fmtdate = formatdate(dateval, "DD MMM YYYY") Results: 12 Feb 2010
// Declare a date variable and initialize // it to a value date dateval dateval = #2010-02-12# // Declare the formatted date variable string fmtdate fmtdate = formatdate(dateval, "MMMM DD, YYYY") Results: February 12, 2010