I need help/tips on converting an ISO 8601 date with the following structure into JavaScript:
CCYY-MM-DDThh:mm:ssTZD
I’d like to format the date like so:
January 28, 2011 - 7:30PM EST
I’d like to keep this solution as clean and minimal as possible.
datejs could parse following, you might want to try out.
Edit: Regex version
Result
Edit2: I changed my timezone to EST and now I got following
return
Basically
return
regex parts just converting above string to your required format.