Fantastic - thanks very much

Seamus

================ You wrote ================
This works in cfmx 6.1
>
><cfset date = "2004-09-21 22:06:13.0">
><cfset plus17h = DateAdd("h", 17, date)>
><cfoutput>
>#DateFormat(plus17h, "dd mmm yyyy")# #TimeFormat(plus17h,  
"HH:MM")#
></cfoutput>
>
>It doesn't work on CF5 though (it fails on the .0)
>On cf5 you could do a workaround
>
><cfset date = "2004-09-21 22:06:13.0">
><cfset date = REReplace(date,"\.0$","")>
><cfset plus17h = DateAdd("h", 17, date)>
>
>Pascal
>
>> -----Original Message-----
>> From: Seamus Campbell [mailto:[EMAIL PROTECTED]
>> Sent: 22 September 2004 13:27
>> To: CF-Talk
>> Subject: [Reply To] Re: [Reply To] RE: Tiem Format problems
>>
>> 2004-09-21 22:06:13.0
>>
>> Ta
>>
>> Seamus
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to