VJAI
VJAI

Reputation: 32758

Displaying datetime in client timezone in ASP.NET MVC

I've a blog created in ASP.NET MVC framework. How I can display the article posted date, comments posted date in client's datetime currently they are displayed in server datetime.

Upvotes: 0

Views: 912

Answers (1)

Giorgi
Giorgi

Reputation: 30873

You can use getTimezoneOffset method to adjust date into client timezone using javascript.

Upvotes: 1

Related Questions