Whatever message this page gives is out now! Go check it out!
LSDateFormat(date [, mask, locale])Parameter | Description |
date | A date/time object, in the range 100 AD-9999 AD. |
mask | Characters that show how ColdFusion displays the date:
|
locale | Locale to use instead of the locale of the page when processing the function |
<cfscript>
date = LSDateFormat(now());
date1 = LSDateFormat(now(), "mmm-dd-yyyy");
date2 = LSDateFormat(now(), "mmmm d, yyyy");
date3 = LSDateFormat(now(), "mm/dd/yyyy");
date4 = LSDateFormat(now(), "ddd, mmmm dd,yyyy");
date5 = LSDateFormat(now(), "d/m/yy");
writeOutput(date1 & "<br/>")
writeOutput(date2 & "<br/>");
writeOutput(date3 & "<br/>");
writeOutput(date4 & "<br/>");
writeOutput(date5 & "<br/>");;
</cfscript>