Sometimes we need to get the client’s timezone, we can use native JavaScript function to get the client timezone.
Vue.js get Client Timezone- JavaScript | VueJs Example
You can get client timezone in vuejs simply as below-
Example:
var myTimezone = new Date().toString().match(/([A-Z]+[\+-][0-9]+.*)/)[1]; |
Output of above example will be something like this-
// GMT-0400