Home > datetime

How to get client machine datetime with local timezone offset value

This article will help to understand how to get  client machine's datetime with local timezone offset value. Use javascript method getTimezoneOffset() and assign it's value to hidden field in .cshtml file as shown in below code. Then pass this value to mvc controller. [crayon-673365be46695631415795/] In the above code, variable offset will have the

This Article is TAGGED in , . Read more