DATEFORMAT(Now(),"yyyy-mm-dd HH:mm:ss.SSS")
When using the code above, ColdFusion always returns the time as 12 minutes past the hour. The rest of the date / time is correct, but the MINUTES are always set at 12 past.
-
At 2011-12-14 14:02:36.020 returned result is 2011-12-14 14:12:36.020
-
At 2011-12-14 13:27:09.783 returned result is 2011-12-14 13:12:09.783
Can anyone explain why? I remember reading something about this in the past, but right now I am pulling a blank.
It’s not now() that’s incorrect, it’s your formatting. You need to use dateformat() and timeformat() like this: