DateFormat (" date" [, " mask" ]) DescriptionFormats a date value. Supports dates in the U.S. date format. For international date support, use LSDateFormat. A mask is optional, and the default is dd-mmm-yy format. Use the following values for the mask:
Example<cfset exampleDate = now()> <cfoutput> #DateFormat(exampleDate)# #DateFormat(exampleDate, "mm/dd/yyyy")# #DateFormat(exampleDate, "mmm-dd-yyyy")# #DateFormat(exampleDate, "mmmm d, yyyy")# #DateFormat(exampleDate, "d/m/yy")# </cfoutput> |