求时间的计算问题!c#
我想写宾馆的计费算法。表中有kaifangDate. 想知道怎么写?谢谢。 --------------------编程问答-------------------- kaifangDate = System.DateTime.Now(); --------------------编程问答-------------------- DateTime from = DateTime.Parse("2010-4-13 12:11:22");DateTime to = DateTime.Parse("2010-4-14 12:11:22");
TimeSpan kaifangDate= to - from; --------------------编程问答-------------------- 设置表的默认值为GetDate() --------------------编程问答-------------------- 整个的算法? --------------------编程问答-------------------- TimeSpan diff = enddate - startdate;
补充:.NET技术 , C#