Thanks !
it works great and it's much simpler than my "artisanal trick" :)
On Thu, 27 Jan 2005 19:18:43 -0400, Larry White <[EMAIL PROTECTED]> wrote:
> Use This:
>
> <cfset ModDate = "lundi 17 janvier 2005 10 h 53 CET">
> <cfset x = SetLocale("French (Standard)")>
> <cfset faqdate= DateFormat(LsParseDAteTime(ModDate),"dd/mm/yyyy")>
> <cfoutput>#faqdate#</cfoutput>
>
>
> >Hi everyone,
> >
> >I'm upgrading a site from Coldfusion 5 to MX but I have a date bug.
> >In Coldfusion 5, I got the "last modified date" of a file and converted
> >it with DateFormat like this :
> >
> > <cfset faqPath = GetTemplatepath()>
> > <cfset faqPath = left(faqPath,len(faqPath)-9) & "wel\">
> > <cfdirectory action="list" name="faqDate" directory="#faqPath#"
> > filter="dspFaq.cfm">
> > <cfset faqDate = left(faqDate.DATELASTMODIFIED,10)>
> > <cfset faqDate = dateformat(faqDate,"dd/mm/yyyy")>
> >
> >My faqDate.DatelastModified with CF5 is like this : "*01/17/2005
> >10:53:00 AM*"
> >But with MX, I get this : *"lundi 17 janvier 2005 10 h 53 CET"
> >*So of course, the left() function can't be used with this string and it
> >bugs. I used a artisanal trick to solve this problem, but I'd like to
> >understand how MX deals with the system dates, which functions I could
> >use...
> >
> >Thanks a lot,
> >--
> >
> >*Nath* <http://spoutnik1307.free.fr/>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192066
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54