I have a DateTime string and I know in which timeZone it is formatted but without any timeZone information in that string.
example : 2017-01-19 23:53:57
Now this string will be converted in server which is in another timeZone and I can not change timeZone of server.
If I use DateTime.Parse("2017-01-19 23:53:57"), I get DateTime of server machine's timeZone configuration.
This is my web application and server can be in different timezones.
I don't want to convert Bangladesh time to UTC. I just want to convert DateTime string which is Bangladesh time zone format to DateTime object also in Bangladesh time zone format.
DateTimeis going to be used in multiple locales, you should be usingDateTime.UtcNowwhenever possible and doing the conversion to local time only on the end user's computer when necessary.