web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Comparing dates

(0) ShareShare
ReportReport
Posted on by 29

Hi all,

 

I have a Sharepoint list with a Datetime field, End Date.

 

I want to compare this end date with today's date to calculate how many days are left to the end.

 

I have tried everything without success. Could someone give me some light?

 

Kind regards

 

Marcus 

Categories:
  • rebeccas Profile Picture
    2,591 on at

    DateDiff(StartDate, EndDate)

     

    EndDate would be Today()

  • Liquid error: Exception has been thrown by the target of an invocation. marcusramos Profile Picture
    29 on at

    So, I have a collection with the Id and the EndDate.

     

    I want to Add another column with the difference of days from Today().

     

    It is not working. I tried this code as you mentioned.

     

    AddColumns(coll_EndDate, "DaysToEnd", DateDiff(Today(), 'Void End Date'))

     

    Do you have any ideas?

     

    Thank you

  • rebeccas Profile Picture
    2,591 on at

    Do you need it in your collection or just to show in a Gallery? If you just need it to show then you can just put a label and use the DateDiff one and it would be:

     

    DateDiff('Void End Date',Today()) <--- this would show how many days today is past the 'Void End Date'

     

    If you need it in the collection (going to put toward your data source you would have to add the column. Let me know if you need that and I will look at what it would be...I haven't done the add columns in a while so I will have to look at it.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard