Kapitaine wrote:
> Hi, thanks for the reply.
>
> So would it actually sit in my DB column as:
>
> {ts '2008-04-10 20:13:00'}
>
> Then do CF functions like this? e.g:
>
> <cfset variables.test = "{ts '2008-04-10 20:13:00'}"
/>
> <h2>#dateFormat(variables.test,
"dd/mm/yyyy")#</h2>
> <h2>#timeFormat(variables.test, "hh:mm:ss
tt")#</h2>
>
> Seems to work, but is this correct? Should the date and
time be stored toether
> like that? Why does it need curly braces and a "t". Is
this some kind of
> convention?
>
> Thanks,
> Mikey.
>
Well, no, that is a string that ColdFusion typeless automatic
conversion
is allowing to work for you. You exact example would probably
be better
down as:
<cfset variables.test =
createDateTime(2008,4,10,20,13,00)>
Now you have an actual date-time object variable that is
easily
accessible for all date-time functions, calculations and
formating.