摘要:
程序中数据相减: protected void Page_Load(object sender, EventArgs e) { //string data="2012-02-29"; object obj = "2010-03-22"; DateTime d = Convert.ToDateTime(obj); TimeSpan ts = DateTime.Now - d; long days = (long)ts.TotalDays; }数据库中 数据相减的 写法:sysdate-to_date(pd.tcr... 阅读全文