javascript - How to convert 2014-04-23T19:45:39 (UTC date) to AST date -


I have a date like this:

2014-04-23T19: 45: 39 which is the UTC format.

I want to convert it to AST format or make user's time zone local. How to do this

I recommend that you use the library and only add or subtract the number of hours of AST time Compare UTC.

  new_date = date.add ('hours', 4); Or new_date = date.subtract ('hours', 4);    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -