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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -