---
title: "How to change default timezone c#"  
description: "How to change default timezone c#"  
author: "Manoj Bhatt"  
published: 2015-03-10  
updated: 2015-03-10  
canonical: https://www.mindstick.com/forum/13013/how-to-change-default-timezone-c-sharp  
category: ".net"  
tags: ["c#", ".net", "time"]  
reading_time: 1 minute  

---

# How to change default timezone c#

How can I change [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources) timezone on my [MVC](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc)(c#) [web](https://www.mindstick.com/articles/12783/the-ultimate-bunch-of-free-web-design-resources) [application](https://www.mindstick.com/articles/12824/calculator-application-in-android)? [Server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over) located in [USA](https://yourviews.mindstick.com/view/84699/what-is-the-current-economy-situation-in-the-usa), [clients](https://www.mindstick.com/articles/23254/why-millions-of-clients-trust-hostinger-s-vps-hosting) connecting from Turkey... I'm looking for a global solution for it, as [global.asax](https://www.mindstick.com/interview/1833/what-are-the-event-handlers-that-can-be-included-in-the-global-asax-file) or webcofig...

## Replies

### Reply by Samuel Fernandes

```
DateTime utcTime = DateTime.UtcNow;         string zoneID
= CurrentUserSession.TimeZoneID // Here you get the current login user session
and their TimeZone which you configured in database at the time of user
creation. or if you want to get client pc time zone then you have to use
javascript and get client pc Timezone        TimeZoneInfo
myZone = TimeZoneInfo.FindSystemTimeZoneById(zoneID);        DateTime
custDateTime = TimeZoneInfo.ConvertTimeFromUtc(utcTime, myZone);
```


---

Original Source: https://www.mindstick.com/forum/13013/how-to-change-default-timezone-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
