I have problem in using DATEDIFF
in sql.
DATEDIFF(DAY,@SimdikiTarih,DATEADD(YEAR,5,t.yenitarih)) AS KalanGun
Here @SimdikiTarih='10.06.2015'
date of today
and t.yenitarih='03.04.2011'
(day.month.year)
The result is 298. Won't it be 293?
Thank you!
It is showing 298 days, but still if you are not getting proper result then Try below query, Convert string to date.