0

I was wondering if anyone new how to remove the time hh,mm,ss from the getdate? I am very new to using SQL and am having trouble. Right now I have the date added so it could always pull the current date and add one day to that. Now I need to remove the time from being shown completely. I do NOT want to change time to 00:00:00, I want it to be completely hidden.

Here is my code:

Select DATEADD(DAY, 1, GETDATE())
Venomous
  • 37
  • 1
  • 1
  • 7

1 Answers1

3

Use CAST or CONVERT.

Using CAST

SELECT DATEADD(DAY,1,CAST(GETDATE() as date))

Using CONVERT

SELECT DATEADD(DAY,1,CONVERT(date,GETDATE()))
Rokuto
  • 814
  • 1
  • 11
  • 16