only select date part from datetime


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



Copy this code and paste it in your HTML
  1. SELECT CONVERT(VARCHAR(10),GETDATE(),111)

URL: http://blog.sqlauthority.com/2007/06/10/sql-server-retrieve-select-only-date-part-from-datetime-best-practice/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.