Calculated column showing number of days between dates

New Contributor


I want a column that shows the number of days between a date thats in another field and todays date. I tried with this =floor((Number([Datefield])-Number(@now))/(1000*60*60*24)), but it failed. Any ideas?



2 Replies

@Tonje Waasjø you can use the DATEDIF function =DATEDIF(TODAY(),Expiry,"D")






Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)




Thank you for your answer Rob. When I paste this in, I get a syntax error message. I just change the name of the column. =DATEDIF(TODAY(),Sluttdato,"D")