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 / Data Card with Date Pi...
Power Apps
Answered

Data Card with Date Picker and Time

(0) ShareShare
ReportReport
Posted on by 14

Hello, 

 

I have a data card with a date picker and time selector in my form. If the user is entering a new event, I want the default value of the date to be today. If a user is viewing an existing record, I want the form to show the recorded date.

 

I stopped using the new mode for forms so my old formula If(FormISDTeamInfo.Mode = FormMode.New,Today(),ThisItem.XXX) does not work anymore.

 

Do you know of a workaround to achieve what I'm trying to do?

 

Thanks everyone!

 

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @aadona 

    Coalesce(Parent.Default, Today())

    If the Parent.Default is blank, then Today() will be used. If you didn't want to allow the user to change it, you could simply put that formula in the Update property of the card itself, put a label in the card with its Text as Parent.Default  and hide the datepicker 

  • aadona Profile Picture
    14 on at

    THANK YOU SO MUCH

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Smilegif.gif

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard