1

I have dates stored in my database as UTC. I'd like to convert them to CST (Central Standard Time).

I've looked everywhere and I've only found ways to convert UTC time to local time. How can I convert it to a specific time zone?

0

2 Answers 2

3

Maybe TimeZoneInfo.ConvertTimeFromUtc from .NET 3.5/4.0?

3

Try this way

TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.Now, "New Zealand Standard Time", "UTC")

More discussions :

How to convert DateTime in Specific timezone?

http://blog.mozilla.org/it/2012/11/16/converting-timezone-specific-times-in-mysql/

Not the answer you're looking for? Browse other questions tagged or ask your own question.