My Asp.net Application is using servertime Zone which is 12 and half hour behind Indian time .Already tried below things GetDate function DateTime.Now
Asked
Active
Viewed 20 times
-1
-
1Please check this, http://stackoverflow.com/questions/832986/how-to-work-with-time-zones-in-asp-net – INDIA IT TECH Mar 25 '16 at 06:31
1 Answers
0
Finally got the result by add time in universal time zone.
static DateTime mydt;DateTime dt1 = DateTime.Now;DateTime dt2 = dt1.ToUniversalTime();TimeSpan t1 = new TimeSpan(5, 30, 0);//for ISTDateTime dt3 = dt2.Add(t1);mydt = dt3;

Md Rameez Memon
- 11
- 2