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