To Convert DateTime format in EST
The Following Function is used to convert datetime of your webserver into EST.
Code:-
protected DateTime getESTFormatedDatetime(DateTime dtdate)
{
return TimeZone.CurrentTimeZone.ToUniversalTime(dtdate).AddHours(-5);
}
Desc:-
The function takes an argument of datetime format and return also the datetime format.
Code:-
protected DateTime getESTFormatedDatetime(DateTime dtdate)
{
return TimeZone.CurrentTimeZone.ToUniversalTime(dtdate).AddHours(-5);
}
Desc:-
The function takes an argument of datetime format and return also the datetime format.
Comments
-sheetal