i tried to get datediff in sql with the following query,
SELECT DATEDIFF(MM,'05/05/2013',GETDATE())
it's working fine but is returning results only in terms of days/months/years depending on the parameter(DD/MM/YY) passed to DATEDIFF()
function.
is their any way to get the result as, suppose in above case 0--years
,7--months
,0--days
?
thanks