Hi there,
I have a date that is stored in a database that i want to output in the format dd-mmm-yyyy. the date is created using the line,
<CFSET datecreate = CreateODBCDateTime(Now())>
this is adding an entry to the database as:
03/12/01 7:09:32 PM
which is where i think the problem is lying, when i do a dateformat on this with the mask as "dd-mmm-yyyy" i get 12-March-01!!!. dates that are for november are stored in the database like this:
11/30/01 2:53:51 PM
and when i do the same dateformat on this i get the correct date out (30-Nov-2001) what the heck is going on here. We are using CF 4 (I know we need to upgrade, but tell the boss !) and like i said all of the other dates are working fine it is just dates for dec !
any ideas ?
I have a date that is stored in a database that i want to output in the format dd-mmm-yyyy. the date is created using the line,
<CFSET datecreate = CreateODBCDateTime(Now())>
this is adding an entry to the database as:
03/12/01 7:09:32 PM
which is where i think the problem is lying, when i do a dateformat on this with the mask as "dd-mmm-yyyy" i get 12-March-01!!!. dates that are for november are stored in the database like this:
11/30/01 2:53:51 PM
and when i do the same dateformat on this i get the correct date out (30-Nov-2001) what the heck is going on here. We are using CF 4 (I know we need to upgrade, but tell the boss !) and like i said all of the other dates are working fine it is just dates for dec !
any ideas ?