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/>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:191796
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