Connecting Tech Pros Worldwide Forums | Help | Site Map

convert string to date

Newbie
 
Join Date: Dec 2006
Posts: 13
#1: Feb 27 '07
hey all,
i have the following bit of code:

<cfif DayOfWeek(Now()) EQ 6 AND Hour(Now()) GE 19 >
<cfset pendimg = 4>
<cfelseif DayOfWeek(Now()) NEQ 6 AND Hour(Now()) GE 17 AND Hour(Now()) LE 19>
<cfset pendimg = 3>
<cfelse>
<cfset pendimg = 2>
</cfif>
<cfset imgbgdtcalc = Now() + pendimg>

the issue i'm coming across is that imgbgdtcalc is coming out looking like
this: 39138.5405093
as opposed to this: 2007-03-01

can you please help me to convert? thanks!!!
mr b.

Newbie
 
Join Date: Dec 2006
Posts: 13
#2: Feb 27 '07

re: convert string to date


nevermind! i just wrapped a dateformat around the line and all is well!
Reply