Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get client machine timezone in asp.net mvc

How to get the time zone id (ex.: Central Standard Time) of the client machine in asp.net mvc?

like image 506
Prasad Avatar asked Dec 18 '25 00:12

Prasad


1 Answers

It will have to be done on the Javascript side, and post that value in a hidden field back to the server. Look into the Date.getTimezoneOffset().

like image 88
Agent_9191 Avatar answered Dec 19 '25 14:12

Agent_9191



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!