Remove time from datetime


/ Published in: SQL
Save to your folder(s)

select cast(floor(cast(getdate() as float)) as datetime)


Copy this code and paste it in your HTML
  1. http://microsoftmiles.blogspot.com/2006/11/remove-time-from-datetime-in-sql-server.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.