Home > HTML & Javascript > Getting Client Timezone in ASP .NET

Getting Client Timezone in ASP .NET

ASP .net Provides dataTime functions like UtcNow, to get the UTC time at present. With DateTime.Now, DateTime.UtcNow, we can calculate Time offset between Server and UTC.
 
But how to find out the offset of client?, the end user who is browsing our site from a different timezone.
For findout the javascript’s Date() object provides a method called "getTimezoneOffset()", which returnes the offset value in Minutes.
 
Refer the blow links from more information.
Advertisements
Categories: HTML & Javascript
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: