 <p>Here is an example of formatting your date to ISO 8601</p> <p><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date#Example.3A_ISO_8601_formatted_dates" rel="nofollow">https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date#Example.3A_ISO_8601_formatted_dates</a></p> <p>There are several approaches you can use to format the date/time, below is a blog on such examples.</p> <p><a href="http://blog.stevenlevithan.com/archives/date-time-format" rel="nofollow">http://blog.stevenlevithan.com/archives/date-time-format</a></p> <p>It's hard to understand what you want to do from your wording but maybe this will help you to get a little further along.</p> <p>Good luck.</p>