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