442
<!--- loop through a list of possible locales and
show date values for Now()--->
<CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
INDEX="locale" DELIMITERS=",">
<CFSET oldlocale = SetLocale(locale)>
<CFOUTPUT><P><B><I>#locale#</I></B><BR>
</CFOUTPUT>
</CFLOOP>
</BODY>
</HTML>
#LSDateFormat(Now(), "mmm-dd-yyyy")#<BR>
#LSDateFormat(Now(), "mmmm d, yyyy")#<BR>
#LSDateFormat(Now(), "mm/dd/yyyy")#<BR>
#LSDateFormat(Now(), "d-mmm-yyyy")#<BR>
#LSDateFormat(Now(), "ddd, mmmm dd, yyyy")#<BR>
#LSDateFormat(Now(), "d/m/yy")#<BR>
#LSDateFormat(Now())#<BR>
<Hr noshade>
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers