Extracting month to day and year after parsing date d3.js
I parsed the date from a json file using a function in d3.js:
var parseDate = d3.time.format("%m-%Y").parse;
and get the date as:
var date = "Tue Jan 01 2013 00:00:00 GMT+0530 (India Standard Time)"
Now I want to deduce the month, day and year from a date variable and print it. How to do it?
Or you can say that I only need to print the month, day, and year, not additional stuff like Tue (Indian Standard Time) etc.
+3
source to share
1 answer