摘要:
从discuz里面调取数据时,发现它的日期格式是UNIX时间戳格式,找到了两个转换成日期格式的方法PHP转换date("Y-m-d", $row["dateline"]) C#转换 1、将系统时间转换成UNIX时间戳DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970,1,1));DateTime dtNow = DateTime.Parse(DateTime.Now.ToString());TimeSpan toNow = dtNow.Subtract(dtS 阅读全文
posted @ 2013-03-14 19:02
晓晨
阅读(1391)
评论(0)
推荐(0)
浙公网安备 33010602011771号