1

I'm pulling dates from a web service using JQuery and they look like this:

2013-05-20T23:59:59+01:00

Is there a quick way to convert this format to a UNIX timestamp using JQuery? So it looks like this:

1369090799

1 Answer 1

1

This is just plain JavaScript. No need of jQuery in this case. You can do

var date = '2013-05-20T23:59:59+01:00'
alert(Date.parse(date)/1000)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.