Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 379

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
<!--- This example shows LSDateFormat --->
<html>
<head>
<title>LSDateFormat Example</title>
</head>
<body>
<h3>LSDateFormat Example</h3>
<p>Format the date part of a date/time value using the locale convention.
<!--- loop through a list of locales; 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>
#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>
</cfloop>
</body>
</html>
Additional globalization tags and functions
In addition to the tags and functions that are specifically for globalized applications, you might find the following
useful when writing a globalized application:
• All string manipulation functions. For more information, see the String functions list in ColdFusion Functions in
the CFML Reference.
• The
function, which returns the time zone of the operating system.
GetTimeZoneInfo
Handling data in ColdFusion
Many of the issues involved with globalizing applications deal with processing data from the various sources supported
by ColdFusion, including the following:
• General character encoding issues
• Locale-specific content
• Input data from URLs and HTML forms
• File data
• Databases
• E-mail
• HTTP
• LDAP
• WDDX
• COM
Last updated 1/20/2012
374

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents