Forum Discussion
Brett007
6 years agoHelper III
Duration between two dates
I would like to calculate the difference between Today's Date and the Date in the [Assigned Date] Column. I wanted to present the answer in the form of days. I used the following formula, but t...
- 6 years ago
Hi Brett007 ,
You could try below M code to see whether it work or not
Duration.Days(Duration.From(DateTime.Date(DateTime.LocalNow())-[Assigned Date]))Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
monsheet
5 years agoNew Member
But then, how so I know which data type both are. They appear to be the same.
Anonymous
5 years agoNot applicable
Hi monsheet ,
datetime would have hh:mm:ss part, date doesn't have and doesn't show it. Dates in the column on the screenshot in this case do not have hours and minutes, mean these are in date format.
Kind regards,
jb