Hi to all,
I am trying to calculate the difference in days between two date fields. Is there any way to do this on report level ?
Thanks in advance.
Hi Vangelis,
Happy to hear that, please mark the question as answered.
Thanks,
Teja Surapaneni
Hi,
Can pls tell me bit more u want no.of days or DOD growth
No, I just want the difference in days just like in excel.
I could not find an appropriate function to implement this.
Thanks
Just convert the date fields to numeric (using treatas function), after that u can easily get solution.
Teja, vtsit
correct, that works well ![]()

This also covers the year skip, that would not have been solved while using days(Del.Date)-Days(entry.Date)
greeting
Hi all,
thanks for the replies, I finally managed to solve the problem due to your suggestions.
Thank you so much.
Best regards
Vangelis
Hi Vangelis,
Happy to hear that, please mark the question as answered.
Thanks,
Teja Surapaneni
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.