What is the date format that Jquery Gannt chart uses? Can you please explian? Thanks and appreciate your feedback.

1,551 views
Skip to first unread message

sam

unread,
Mar 19, 2012, 10:35:17 AM3/19/12
to jquer...@googlegroups.com
What is the date format that Jquery Gannt chart uses? Can you please explian? Thanks and appreciate your feedback.

Tom W

unread,
Mar 19, 2012, 10:58:37 AM3/19/12
to jquer...@googlegroups.com
I believe it's the number of milliseconds since Unix Epoch.

sam

unread,
Mar 19, 2012, 12:16:59 PM3/19/12
to jquer...@googlegroups.com
Thank you very much.

Yulia Shabanova

unread,
Mar 27, 2013, 4:37:38 AM3/27/13
to jquer...@googlegroups.com
Hello. Is that possible to use another date format. I use format like that: new Date('2013-02-25') but it doesn't work in all of browsers. Does someone know that?

понедельник, 19 марта 2012 г., 18:58:37 UTC+4 пользователь Tom W написал:

Joel Williams

unread,
Jun 27, 2013, 9:28:04 PM6/27/13
to jquer...@googlegroups.com
Try parsing the date with something like:


function dateParser (mydate) {
    if (mydate !== undefined) {
        var a = mydate.split("-");
        var yearMy = a[0];
        var monthMy = a[1];
        var dayMy = a[2];
        var finalDate = new Date(yearMy, monthMy, dayMy);
        var finalDate = finalDate.getTime();
        return finalDate;

Ruben Zempoaltecatl

unread,
Nov 26, 2013, 9:23:25 AM11/26/13
to jquer...@googlegroups.com
You can also use getTime():

var date = new Date();
date.getTime();
Reply all
Reply to author
Forward
0 new messages