ancy chacko

ancy chacko

  • NA
  • 71
  • 18.4k

how can i convert Timezone

May 15 2015 5:40 AM
Hi


 i am converted server timezone to India Standard Time using below code.
but its working fine in iis and not working in cloud server....(cloud timezone is us)






DateTime serverTime = DateTime.Now;
        DateTime _localTime = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(serverTime, TimeZoneInfo.Local.Id, "India Standard Time");

      
        return _localTime;

Answers (1)