I have a SQL table that has a CreationDate field.
I have getdate() in the computed column specification formula.
I would like to know how to get just the date portion, that is, '2012-08-24' instead of '2012-08-24 10:45:17.740'.
I have a SQL table that has a CreationDate field.
I have getdate() in the computed column specification formula.
I would like to know how to get just the date portion, that is, '2012-08-24' instead of '2012-08-24 10:45:17.740'.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Priyanka JainRank #356 · 7K reputationPosted Sep 6, 2019, 3:18 AM EDT
Rajanikant HawaldarRank #108 · 20.5K reputationPosted Sep 6, 2019, 2:44 AM EDT
Sonu GuptaRank #1,261 · 1.4K reputationPosted Sep 8, 2019, 10:20 PM EDT