Avatar of Marc Rosema
Marc Rosema

asked on 

asp.net timezone

I would like to add a dropdownlist with timezones in my application and by selecting a time zone it should change the time and date of created issues.

Now I am using:

lblCreated.Text = System.DateTime.Now.ToString("dd-MMM-yy hh:mm tt", CultureInfo.CreateSpecificCulture("en-US"));

Problem is this only shows the time of the server.

What I want it that a user in Amerika can select it's time zone and use it's time, and when an user in the Netherlands select it's timezone it shows it correct time.

Any idea's on how I can do this?

Avatar of undefined
Last Comment
Naitik Gamit

8/22/2022 - Mon