# Auto Detect TimeZone

**URL:** <https://forum.ionicframework.com/t/auto-detect-timezone/78515>\
**Category:** ionic-v1\
**Created:** [February 6, 2017, 6:47am UTC](https://forum.ionicframework.com/t/auto-detect-timezone/78515 "2017-02-06T06:47:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anicacute09](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anicacute09/32/113162_2.png) [@anicacute09](https://forum.ionicframework.com/u/anicacute09)\
**Post date:** [February 6, 2017, 6:47am UTC](https://forum.ionicframework.com/t/auto-detect-timezone/78515/1 "2017-02-06T06:47:59Z")

</div>

Hi guys, I just want to know how can I achiever to detect the browser/user timezone automatically… Thanks for the help…

---

<div class="post-metadata">

**Author:** ![thesourav](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@thesourav](https://forum.ionicframework.com/u/thesourav)\
**Post date:** [February 6, 2017, 7:25am UTC](https://forum.ionicframework.com/t/auto-detect-timezone/78515/2 "2017-02-06T07:25:39Z")

</div>

var d = new Date();  
var n = d.toString().match(/([A-Z]+[±][0-9]+.\*)/)[1]  
console.log(n)  
it returns something like "GMT-0500 (Eastern Standard Time)"  
Is this what you want
