what is the locale on the server? If it's US it will think the digits are
the month, if it's AU then it will think the first digits are a day. It
looks like your locale is set to US. You can set the locale with setLocale
see http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functa80.htm

try
#setLocale( "English (Australian)" )#
#lsDateFormat( now() )#


On 1/29/07, claude raiola <[EMAIL PROTECTED]> wrote:
>
>  *I have tried that , that is why the date is displaying with the month as
> OCT, however the date value I am using is 10-1-07 yet it outputs it as
> 1-Oct-07*
> **
>  <cfset payment_from_date="10-01-07">
> #dateformat(payment_from_date, 'dd-mmm-yy')#   outputs the date as
> 1-Oct-07 rather than 10-Jan-07
>
>
> **
> **
> **
>
>
>
>
>
>
>
> Kind Regards
>
> Claude Raiola
> B.Econ(Acc.); B.Hotel Mngt.
> Mobile: 0414 228 948
> Phone: 07 5538 5961
> Fax: 07 3319 6444
>
> Websites:
> www.WebsiteSolutions.com.au <http://www.websitesolutions.com.au/>
> www.AustralianAccommodation.com <http://www.australianaccommodation.com/>
> www.AccommodationNewZealand.com <http://www.accommodationnewzealand.com/>
> www.HospitalityPurchasing.net <http://www.hospitalitypurchasing.net/>
> www.Samaris.net <http://www.samaris.net/>
>
>
>  ------------------------------
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Adam Chapman
> *Sent:* Monday, 29 January 2007 7:23 AM
> *To:* [email protected]
> *Subject:* [cfaussie] Re: working with dates in CF
>
>
>
> Hi Claude,
>
>
>
> Try dateformat(lsParseDateTime(payment_date), "dd-mmm-yy")
>
>
>
> Cheers,
>
> Adam
>
>
>  ------------------------------
>
> *From:* claude raiola [mailto:[EMAIL PROTECTED]
> *Sent:* Monday, 29 January 2007 12:52 AM
> *To:* [email protected]; [email protected]
> *Subject:* [cfaussie] working with dates in CF
>
>
>
> hi al
>
>
>
> I have the following date that I need to specify in my code   <cfset
> payment_from_date="10-01-07">
>
> however I cannot seem to display it in correct date format using the
> dateformat function it keeps returning 1-oct-07 when I am using
> dateformat(payment_date, dd-mmm-yy)
>
>
>
> I look forward to your advice
>
>
>
> seem to find date display / manipulation a real pain in the butt to get
> the correct format
>
>
>
>
>
>
>
>
>
> Kind Regards
>
> Claude Raiola
> B.Econ(Acc.); B.Hotel Mngt.
> Mobile: 0414 228 948
> Phone: 07 5538 5961
> Fax: 07 3319 6444
>
> Websites:
> www.WebsiteSolutions.com.au <http://www.websitesolutions.com.au/>
> www.AustralianAccommodation.com <http://www.australianaccommodation.com/>
> www.AccommodationNewZealand.com <http://www.accommodationnewzealand.com/>
> www.HospitalityPurchasing.net <http://www.hospitalitypurchasing.net/>
> www.Samaris.net <http://www.samaris.net/>
>
>
>
>
>
> >
>


-- 
Taco Fleur - http://www.pacificfox.com.au
Web Design, Web development, Graphic Design and Complete Internet Solutions
an industry leader with commercial IT experience since 1994 …

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to