我有一个日期,我想把它四舍五入到第二天。
例如:
SomeDate DATETIME,
NewDate DATETIME
SomeDate = '01/05/2012 8:00:0 PM'
NewDate = Get the next day value here (in this sample it would be '01/05/2012 8:00:0 PM' + 4 Hours which is '02/05/2012 00:00:00 AM')
简而言之,我想要的是:
NewDate = '02/05/2012 00:00:00 AM'
有什么快速的方法吗?
谢谢!