可以使用convert函數(shù)轉(zhuǎn)換為date類型,這樣就沒有時間部分了。
select convert(date,getdate())
如果要保留時間不要日期,則轉(zhuǎn)換為time類型。
select convert(time,getdate())
?