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 Platform Community / Forums / Power Apps / Date format collection
Power Apps
Answered

Date format collection

(0) ShareShare
ReportReport
Posted on by 250

hey,

 

Dates again, am creating a collection for a course:

ClearCollect(ColEx, {Name:"Father", Surname: "Christmas", Age: 89, DateOfBirth: "10/25/1898"});

 when i want to do a age control as follows: 

DateDiff(Today(), DateValue(ThisItem.DateOfBirth))

I get [-45319] 

What am i doing wrong please?

Categories:
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @loopingmurdock 

     

    You got your values in the opposite place. 

    DateDiff( DateValue(ThisItem.DateOfBirth), Today())

     

    Also if you want to get the years difference, use this: 

    DateDiff( DateValue(ThisItem.DateOfBirth), Today(), Years)
  • Verified answer
    loopingmurdock Profile Picture
    250 on at

    Some problem put no more -

    loopingmurdock_0-1669129123631.png

     

  • loopingmurdock Profile Picture
    250 on at

    Oh wait the year on is good sorry

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard