4
I have the following code:
var minhaData = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, meuTimeZone);
Case meuTimeZone = "E. South America Standard Time";
then the value returned to minhaData
stays with Timezone -03:00
.
It is possible somehow to obtain this value in hours (in this case -03:00
) on the basis of meuTimeZone
or in minhaData
?
I don’t understand the point, explain it better.
– Maniero
Type
minhaData.ToString("zzz");
?– Jéf Bueno