Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to return only the Date from a SQL Server DateTime datatype

Asked by Carl Paige Jul 5, 2021 845 views 1 answer
Share

About this question

SELECT GETDATE()

Returns: 

2008-09-22 15:24:13.790

I want that date part without the time part: 

2008-09-22 00:00:00.000

How can I get sql date only?

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.