DECLARE @Date int
SET @Date =DAY(getdate())
--SELECT DateAsInteger = CAST (CONVERT(varchar,@Date,112) as INT)
SELECT DateAsInteger =cast(convert(nvarchar,@Date,112)as int)
Loading
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
Answers
Know the answer? Post it. Somebody with the same question will find it here.