MACROMEDIA COLFUSION MX 7-MIGRATING APPLICATIONS TO COLDFUSION MX 7 Manual page 15

Migrating applications to coldfusion mx 7
Table of Contents

Advertisement

Function
LSDateFormat
LSTimeFormat
LSIsCurrency
LSIsDate
Description of change
In ColdFusion MX,
LSDateFormat
locale. For example,
LSDateFormat(12/01/02)
locale is set to English (UK), and Dec-01-2002 if the set locale is
English(US).
In ColdFusion 5,
LSDateFormat
format.
When no mask is specified, ColdFusion MX returns the Java medium date
format for the locale. ColdFusion 5 returns one of two default masks,
depending on the locale:
• For a locale where the date ends with the year, the default mask is
.
dd-mmm-yy
• For a locale where the date begins with the year, the default mask is
.
yyyy-mmm-dd
The
date format for English (US) has changed to the Java
medium
standard; for example, "Sept 4, 1998 11:15:16 PM" and "11:15:16 PM Sept.
4, 1998" are valid. However, "23:15:16 4 Sept. 1998" is not valid; for
example,
LSParseDateTime("23:15:16 4 Sept. 2003")
For a list of valid date formats, see the Java documentation for the
java.text.DateFormat class at
index.html.
If you pass an invalid mask (for example,
outputs the invalid characters in both ColdFusion 5 and ColdFusion MX.
However, ColdFusion 5 delimits each character of the output with an
apostrophe (') character.
ColdFusion MX supports the following masks for
• h:m:s
LSTimeFormat("6:39","h:m:s")
• hh:mm:ss
LSTimeFormat("6:39","hh:mm:ss")
• hh:mm:ss t
LSTimeFormat("6:28:26","hh:mm:ss t")
06:28:26 A
• hh:mm:ss tt
LSTimeFormat("6:28:26","hh:mm:ss tt")
06:28:26 AM
If you pass an invalid mask,
both ColdFusion 5 and ColdFusion MX. However, ColdFusion 5 delimits
each character of the output with an apostrophe (') character.
When a euro currency is passed into the
ColdFusion MX returns Yes if the locale is a Euro member, and No if not,
independent of the JVM version. With 1.3 level JVMs only, this function
also returns Yes if the currency is in a Euro zone country's pre-Euro
currency format.
In ColdFusion MX, you can pass in dates with the
parameters. These formats include the name of the day (for
datetime
example, Wednesday).
returns the appropriate date for the set
returns Jan-12-2002 if the
throws an error or returns an incorrect
http://java.sun.com/j2se/1.3/docs/api/
"dd-mm-yymm")
LSTimeFormat
returns 6:39:0
outputs the invalid characters in
LSTimeFormat
LSIsCurrency
full date
Localization and character handling
causes an error.
,
LSDateFormat
:
returns 06:39:00
returns
returns
function,
and
full
15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLFUSION MX 7-MIGRATING APPLICATIONS TO COLDFUSION MX 7 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents