-1

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

1 Answers1

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;