Hello,
Suppose I have 2 dates "21/10/2019" and "24/11/2020". How to get time period in dd/MM/yyyy formate?
Thanks in advance.
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
Kamil Krupski154 reputationPosted Jun 23, 2020, 3:32 AM EDT
Ankit ShuklaRank #2,120 · 672 reputationPosted Jun 22, 2020, 9:44 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Jun 19, 2020, 11:54 PM EDT
Vikas JhaRank #1,222 · 1.5K reputationPosted Jun 20, 2020, 12:09 AM EDT
Vikas JhaRank #1,222 · 1.5K reputationPosted Jun 22, 2020, 10:52 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Jun 23, 2020, 12:18 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 23, 2020, 2:14 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 23, 2020, 3:19 AM EDT
Ankit ShuklaRank #2,120 · 672 reputationPosted Jun 24, 2020, 1:37 AM EDT
satheesh d190 reputationPosted Nov 9, 2021, 7:55 AM EST
geetha velusamy52 reputationPosted Nov 15, 2021, 9:06 AM EST
startdate
, enddate
, DATEDIFF(YY,startdate , enddate)
from
date
select
startdate
, enddate
, DATEDIFF(MM,startdate , enddate)
from
date
select
startdate
, enddate
, DATEDIFF(DD,startdate , enddate)
from
date