我有一個日期,我想整理到第二天。在T-SQL中將DateTime舍入到第二天?
例如:
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'
有快捷方式?
謝謝!
1毫秒足以明天去?是1納秒?是1微微秒? – 2013-03-07 21:43:29
現在時間旅行很快,SQL;) – Learner 2013-03-07 21:48:25