You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › Change format date
Hi, can i change the value of the month from Feb to 02? Because when i do this, my chart disappers. new Date(“Sun Feb 03 2013 22:04:09”) into new Date(“Sun 02 03 2013 22:04:09”)
We observe that both formats are working fine.
{ x: new Date("Sun 02 03 2013 22:04:09"), y: 26}, { x: new Date("Sun Feb 03 2013 22:04:09"), y: 26}
Here is the screenshot of the same. Can you please create a jsfiddle with the issue, so that we can look into it and resolve.
Hi Vishwas, it works fine only in Chrome.
Both formats works fine across browsers like Firefox, all chromium based except Internet Explorer as new Date(“Sun 02 03 2013 22:04:09”) is not a standard JavaScript DateTime format. Its suggested to use standard JavaScript DateTime formats to make it work properly across all browsers.
Now i have changed into new Date(“02 03 2013 03:15:49 GMT+0100 (W. Europe Standard Time)”) but is always the same thing: in Chrome it works very good but in Safari and Explorer the points do not appear.
Kindly use any of the following 4 date-formats. 1. ISO Dates (YYYY-MM-DD or YYYY-MM or YYYY-MM-DDTHH:MM:SS) 2. Long Dates (MMM DD YYYY) 3. Short Dates (MM/DD/YYYY or YYYY/MM/DD) 4. Full Format (full JavaScript format Ex: new Date(“Wed Mar 25 2015 09:56:24 GMT+0100 (W. Europe Standard Time)”);
Please refer this page for Date-Formats in JavaScript.
You must be logged in to reply to this topic. Login/Register