Hello I’m using the fullcalendar jQuery plugin to create a calendar app. When I call the start method on the event object the date format I get is like this:
ISO FORMAT:
Sun Nov 27 2011 06:30:00 GMT+0200 (EET)
Now I want to keep only the time and minutes of the event:
6 hours
30 minutes
in our example.
How can I trim/parse only the time with JavaScript?
You can use Date.parse:
Take a look at http://www.w3schools.com/jsref/jsref_obj_date.asp to more JavaScript Date options.