private string StampToDate(string timeStamp,string format)
{
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
long lTime = long.Parse(timeStamp + "0000000");
TimeSpan toNow = new TimeSpan(lTime);
return dtStart.Add(toNow).ToString(format);
}
//StampToDate("1394533451","yyyy-MM-dd");
//结果:2014-3-11