Hi
I want to display Date Value as '' in a select statement
Thanks
Hi
I want to display Date Value as '' in a select statement
Thanks
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 attend5days leftRegister
Vishal JoshiRank #377 · 6.7K reputationPosted Nov 1, 2023, 6:55 AM EDT
Hello Ramco,
Please check the below SQL code to convert the Datetime to string.
-- -- Create test case -- DECLARE @myDateTime DATETIME SET @myDateTime = '2008-05-03' -- -- Convert string -- SELECT LEFT(CONVERT(VARCHAR, @myDateTime, 120), 10)Thanks
Vishal Joshi
Amit MohantyRank #112 · 20K reputationPosted Nov 1, 2023, 7:10 AM EDT
Can you please explain more about your issue with some sample data?