sql server date format date only code example Example: sql server current time without date select CAST(GETDATE() as time(0))