LSDateFormat

"-->
 LSDateFormat (date [,  mask ]) 

Description

Formats a date in a specific locale format. The format is set by the locale of the server. To find out the current locale setting, use the GetLocale function.

Use the following values for the mask:

  • d. Day of the month as digits (no leading 0 for single digits).

  • dd. Day of the month as digits (leading 0 for single digits).

  • ddd. Day of the week as a three-letter abbreviation.

  • dddd. Day of the week as its full name.

  • m. Month as digits (no leading 0 for single digits).

  • mm. Month as digits (leading 0 for single digits).

  • mmm. Month as a three-letter abbreviation.

  • mmmm. Month as its full name.

  • y. Year as last two digits (no 0 if less than 10).

  • yy. Year as last two digits (leading 0 if less than 10).

  • yyyy. Year represented by four digits.

  • gg. Period/era string. Ignored, but reserved for future use.

Example

 <cfoutput>  #LSDateFormat(Now())#  #LSDateFormat(Now(), "mmm-dd-yyyy")#  #LSDateFormat(Now(), "mmmm d, yyyy")#  #LSDateFormat(Now(), "ddd, mmmm dd, yyyy")#  #LSDateFormat(Now(), "d/m/yy")#  </cfoutput>  


Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net