top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to convert UTC data strings to the specific Date Format using JavaScript?

+1 vote
401 views
How to convert UTC data strings to the specific Date Format using JavaScript?
posted Apr 18, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

For example: UTC date string, "2011-10-30T18:30:00Z", and you want to convert it to "2011-10-30 18:30".

use:
str=str.replace(/T|\:\d\dZ/g,' ')

answer Apr 19, 2016 by Manikandan J
...