What does IsDate("Tuesday, July 29, 2003 12:32:17 PM CDT") give you?

What version of CF are you on? I get a YES with the above on CF6.1. But the
following causes an error:

DateFormat("Tuesday, July 29, 2003 12:32:17 PM CDT")

Could it be a problem with your locale? What do you get when you output
GetLocale()?

Ade

-----Original Message-----
From: Scot VanAlstine [mailto:[EMAIL PROTECTED]
Sent: 24 March 2005 20:44
To: CF-Newbie
Subject: Re: Cleaning out a server directory with CF


This is interesting.  It worked when I used this, but for some reason when I
run it now I get the following message:
Error Occurred While Processing Request
The value "Tuesday, July 29, 2003 12:32:17 PM CDT" could not be converted to
a date.
The error occurred in
/isweb/www/ss/issapt/applications/bbtools_suite/issphone/issphone_8_1_6/admi
n/clean_dir.cfm: line 19

17 : <CFDIRECTORY ACTION="List" DIRECTORY="#logPath#" NAME="dir_listing">
18 : <cfloop query="dir_listing">
19 : <cfif
dateCompare(dateAdd("d",60,DateFormat(#datelastmodified#)),#DateFormat(Now()
)#) LTE 0>
20 :        <cffile action="DELETE" file="#logPath#/#name#">
21 : </cfif>

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

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

Reply via email to