<!--- This shows LSDateFormat --->
<HTML>
<HEAD>
<TITLE>LSDateFormat Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>LSDateFormat Example</H3>

<P>LSDateFormat formats the date portion of a date/time
value using the locale convention. 

<!--- Limit locale display --->
<CFSET showLocales = "English (US),English (UK),French (Standard),French (Swiss),German (Standard),Italian (Standard)">

<!--- loop through a list of possible locales and
show date values for Now() --->
<CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
INDEX="locale" DELIMITERS=",">
  <CFIF ListContainsNoCase(showLocales, locale) is not 0>
	<CFSET oldlocale = SetLocale(locale)>
	<CFOUTPUT><P><B><I>#locale#</I></B><BR>
		#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>
	</CFOUTPUT>
  </CFIF>
</CFLOOP>

</BODY>
</HTML>       

