Orlini, Robert wrote:
Thanks Paul. How is this incorporated into the dateformat function? I'm new
to this.
you can either build a real date object from date using createDate() or if
you're simply going to display it:
#thisMonth#-#thisDay#-#thisYear# or whatever.
cfoutput#dateformat(CreateDate (thisYear, thisMonth,
thisDay),-MM-DD)#/cfoutput
Marius
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent: October 4, 2007 9:23 AM
To: CF-Talk
Subject: RE: date format display
Thanks Paul. How is this incorporated
Thanks.
Removing quotes however produced: 568521023.
Not nayhting near: 11-04-2007
-Original Message-
From: Marius Milosav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 8:55 AM
To: CF-Talk
Subject: RE: date format display
Try removing the quotes around get.enddate
Try removing the quotes around get.enddate
#dateformat(get.enddate,MMDD)#
Marius Milosav
ScorpioSoft Corp.
www.scorpiosoft.com
It's not about technology, it's about people
-Original Message-
From: Orlini, Robert [mailto:[EMAIL PROTECTED]
Sent: October 4, 2007 8:43 AM
To: CF-Talk
Orlini, Robert wrote:
I brought this up before, but I need a date (displayed for example as:
20071104) to be formatted to display
and if you did you'll have been told to parse your date string.
thisYear=left(get.enddate,4);
thisMonth=mid(get.enddate,5,2);
thisDay=right(get.enddate,2);
I seem to remember someone else responded that you need to drop your quotes
from the first example you gave last time you asked this.
#dateformat(get.enddate,MMDD)#
SHOULD BE:
#dateformat(get.enddate,MMDD)#
The difference being, get.enddate is a string and get.enddate is a date.
Paul
Thanks Paul. How is this incorporated into the dateformat function? I'm new to
this.
-Original Message-
From: Paul Hastings [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 8:58 AM
To: CF-Talk
Subject: Re: date format display
Orlini, Robert wrote:
I brought this up before
the day: 04
-Original Message-
From: Marius Milosav [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 9:31 AM
To: CF-Talk
Subject: RE: date format display
cfoutput#dateformat(CreateDate (thisYear, thisMonth,
thisDay),-MM-DD)#/cfoutput
Marius
-Original Message-
From
Hastings [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 9:29 AM
To: CF-Talk
Subject: Re: date format display
Orlini, Robert wrote:
Thanks Paul. How is this incorporated into the dateformat function? I'm new
to this.
you can either build a real date object from date using createDate
9 matches
Mail list logo