c# - Get Local TimeZoneInfo -
i using c#. need local time zone info person running web application.
i wondering if
timezoneinfo tzinfo = timezoneinfo.local; timezoneinfo.converttimefromutc(result.duedate.value, tzinfo);
is use. again depending on time zone person running application is, reflected.
yes right, should use. alternative can be
timezone localzone = timezone.currenttimezone;
but currenttimezone
property corresponds timezoneinfo.local
property no difference really.
it displays names standard time , daylight saving time local time zone.
Comments
Post a Comment