Reading this and all the replies, are you asking if there's a way you don't
have to supply a mask everytime you want to format a date?

If yes, two ways spring to mind...


1. Create a function that does the formatting for you:

        function MyLSDateFormat(dt) {
                return LSDateFormat(dt, "DDDD, MMMM D, YYYY")
        }

called like:
        #MyDateFormat(Now())#


2. Make the mask a variable and set it globally:

        REQUEST.mask = "DDDD, MMMM D, YYYY"

used like:

        #LSDateFormat(dt, REQUEST.mask)#


If no, then pretent I was never here :OD

Ade

-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 14:52
To: CF-Talk
Subject: LSDATEFORMAT & LOCALE


When I have the Locale set to Spanish (Mexican), and go
to display the date using this format:

#LSDATEFORMAT(Now(), "DDDD, MMMM D, YYYY")#

It displays as:   martes, marzo 29, 2005

Is there anyway to get it like such without having to do
a string conversion?

Martes, Marzo 29, 2005




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200656
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to