javascript - How to convert 2014-04-23T19:45:39 (UTC date) to AST date -
I have a date like this:
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. 2014-04-23T19: 45: 39 which is the UTC format.
new_date = date.add ('hours', 4); Or new_date = date.subtract ('hours', 4);
Comments
Post a Comment