public static string ShowUserZoneDate(DateTime Dbdate, double zone)
{
if (Dbdate != null)
{
TimeSpan tms = new TimeSpan(0, Convert.ToInt32(zone * 60), 0);
return Dbdate.Add(tms).ToString();
}
else
return "";
}
{
if (Dbdate != null)
{
TimeSpan tms = new TimeSpan(0, Convert.ToInt32(zone * 60), 0);
return Dbdate.Add(tms).ToString();
}
else
return "";
}
No comments:
Post a Comment