House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

variable as a string

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi Gang,
JT
05/31/04 07:34 P
DateFormat(yourvar, "mm-dd-yyyy")
Aaron DC
05/31/04 07:51 P
When I do that I get
JT
05/31/04 08:36 P
Thanks Matthew,
JT
05/31/04 09:00 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
JT
05/31/2004 07:34 PM

Hi Gang, I have a variable as a string Tuesday, June 1, 2004 What I am Trying to figure out is how can I change it to 06-01-2004 Any one can tell me if it can be done and how? JT

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Aaron DC
05/31/2004 07:51 PM

DateFormat(yourvar, "mm-dd-yyyy") Aaron Hi Gang, I have a variable as a string Tuesday, June 1, 2004 What I am Trying to figure out is how can I change it to 06-01-2004 Any one can tell me if it can be done and how? JT

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
JT
05/31/2004 08:36 PM

When I do that I get this Error The value "Tuesday, June 1, 2004" could not be converted to a date. JT   DateFormat(yourvar, "mm-dd-yyyy")   Aaron   Hi Gang,   I have a variable as a string   Tuesday, June 1, 2004   What I am Trying to figure out is how can I change it to   06-01-2004   Any one can tell me if it can be done and how?   JT

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Terry Troxel
06/01/2004 11:57 AM

try #createodbcdate(dateformat(yourstringvalue,'mm/dd/yyyy'))#   Hi Gang,   I have a variable as a string   Tuesday, June 1, 2004   What I am Trying to figure out is how can I change it to   06-01-2004   Any one can tell me if it can be done and how?   JT

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Matthew Walker
05/31/2004 08:45 PM

Have you tried parseDateTime() or lsParseDateTime()? (That's an L not an I)   _____ Sent: Tuesday, 1 June 2004 12:34 p.m. To: CF-Talk Subject: RE: variable as a string When I do that I get this Error The value "Tuesday, June 1, 2004" could not be converted to a date. JT   DateFormat(yourvar, "mm-dd-yyyy")   Aaron   Hi Gang,   I have a variable as a string   Tuesday, June 1, 2004   What I am Trying to figure out is how can I change it to   06-01-2004   Any one can tell me if it can be done and how?   JT   _____  

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
JT
05/31/2004 09:00 PM

Thanks Matthew, Just What I was Looking For. JT   Have you tried parseDateTime() or lsParseDateTime()? (That's an L not an I)     _____   Sent: Tuesday, 1 June 2004 12:34 p.m.   To: CF-Talk   Subject: RE: variable as a string   When I do that I get   this Error   The value "Tuesday, June 1, 2004" could not be converted to a date.   JT     DateFormat(yourvar, "mm-dd-yyyy")     Aaron     Hi Gang,     I have a variable as a string     Tuesday, June 1, 2004     What I am Trying to figure out is how can I change it to     06-01-2004     Any one can tell me if it can be done and how?     JT     _____


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 09, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30