The CreateDate function might be your best bet.  Perhaps something like
this:
<cfset new_date_CF = createdate(listgetat(asciidate, 1, "/"),
listgetat(asciidate, 2, "/"), listgetat(asciidate, 3, "/"))>
<cfset new_date_ODBC = createODBCdate(new_date)>

This should give you a CF date, and a database compatible date from
asciidate.

Untested, but should work.
-Bill
/intraget

----- Original Message -----
From: Ray, James A <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 11, 2000 12:00 PM
Subject: Ascii Date to CF Date


> After I have imported my Ascii file, I have a date which is displayed as
> '9/9/2000'
>
> Now, I though that if I use the format statement
> <cfset pDATEOFMAINT = #DateFormat(DATEOFMAINT, "dd-mmm-yy")#>
> this would put my date in the proper format.
>
> This should be treated no different then if it was passed via a form.  Now
I
> could parse the data out and put it in the right format, but is this the
> best practice for doing this.
>
> Thank you and I'll be busy reading up on how CF treats dates.
>
> Jim Ray
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to