How to get this date format?
Apr 22, 2018 12:44:58 PM
I've tried this code (new Date()).toUTCString()
but the result is like
Sun, 22 Apr 2018 10:45:19 GMT
How to get this date format?
Apr 22, 2018 12:44:58 PM
I've tried this code (new Date()).toUTCString()
but the result is like
Sun, 22 Apr 2018 10:45:19 GMT
Easiest way is to leverage MomentJS - you can then use:
moment().format('MMM DD, YYYY hh:mm:ss A')