new Date()
//returns Fri Mar 29 2013 17:55:25 GMT+0530 (IST)
new Date()
//returns Fri Mar 29 17:48:46 UTC+0530 2013
I need to extract (IST)
part from the Date on IE,On chrome I could do dateString.substring
to extract it but on IE I cannot do that.
The method getTimeZoneOffset
gives me the offset in minutes, is there a way to get the string using the offset ?
Or do I need to research for all the timezone strings corresponding to the offsets and create an object out of it & then use it ?
Can this be of service to you?
jsTimezoneDetect
Also this might also be a relevant read: How can I determine a timezone by the UTC offset?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With