I am trying to get a date in the following format using javascript only.How can I get the name of timezone which I guess is ([Europe/London]) in this case? Note: javascript only please :-)
2016-12-27T20:16:12.752+0000[Europe/London]
The format is: yyyy-MM-dd'T'HH:mm:ss.SSSZ'['VV']'
The Date methods like new Date()
and toISOString()
are available however they don't provide name of timezone .What else can be done?
Any suggestion is really appreciated.