r/SQL • u/Substantial-Book2534 • Sep 25 '26
Discussion Using DateAdd for timestamps
I am making updates to some older reports and come across this line (or similar) often:
DateAdd(hh, 0, GetDate())
Why do you do that? Is there a legitimate reason why you couldn’t just write GetDate()?
5
Upvotes
View all comments
Show parent comment
1
u/Eleventhousand Sep 25 '26
How about this instead: Please just leave me alone. I obviously didn't berate OP. I am a genuinely nice person, and I enjoy helping folks. I helped numerous Redditors with SQL 1 on 1 and have done mock interviews with them. I deserve at least the baseline level of respect that you'd give to a stranger.