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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -