Date format question
Posted: Wed Jun 03, 2009 4:37 am
hi,
I've got a problem regarding a dateformat, and I'm hoping you can help me.
I'm using a great JQuery datepicker script, and I've managed to get the data into my php script, where I want to use it (e.g. store it in the database) but I've got no idea what kind of dateformat it is. I need to get the day, month and year from the datepicker.
when I select a date, the corresponding output is, for example, "Wed Jun 17 2009 00:00:00 GMT+0200 (CEST)". but when all the selected dates are put in an array by the datepicker the output I get is 1245189600000.
I can't find any corresponding numbers in there, does anyone know how to 'unscramble' this?
I've got some more examples for you:
Thu Jun 04 2009 00:00:00 GMT+0200 (CEST) -> 1244066400000
Sat Oct 10 2009 00:00:00 GMT+0200 (CEST) -> 1255125600000
Sun Jan 16 2011 00:00:00 GMT+0100 (CET) -> 1295132400000
I'm really hoping you can help me! thanks in advance,
Hanneke
I've got a problem regarding a dateformat, and I'm hoping you can help me.
I'm using a great JQuery datepicker script, and I've managed to get the data into my php script, where I want to use it (e.g. store it in the database) but I've got no idea what kind of dateformat it is. I need to get the day, month and year from the datepicker.
when I select a date, the corresponding output is, for example, "Wed Jun 17 2009 00:00:00 GMT+0200 (CEST)". but when all the selected dates are put in an array by the datepicker the output I get is 1245189600000.
I can't find any corresponding numbers in there, does anyone know how to 'unscramble' this?
I've got some more examples for you:
Thu Jun 04 2009 00:00:00 GMT+0200 (CEST) -> 1244066400000
Sat Oct 10 2009 00:00:00 GMT+0200 (CEST) -> 1255125600000
Sun Jan 16 2011 00:00:00 GMT+0100 (CET) -> 1295132400000
I'm really hoping you can help me! thanks in advance,
Hanneke