cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cchan000
Helper V
Helper V

How to set date picker to today as default?

In sharepoint site i have "today's date as default" checkmarked. but i think powerapps overrides it and makes the default date 12/31/2001

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Unlock the data card with the datepicker in it and change the DefaultDate property from Parent.default to Today().



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
Pstork1
Dual Super User III
Dual Super User III

Unlock the data card with the datepicker in it and change the DefaultDate property from Parent.default to Today().



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

you are brilliant thanks.

HaraldOsmann
Advocate I
Advocate I

I think the correct formula should be:

 

If(SharePointForm1.Mode=FormMode.New;Today();Parent.Default)

 

Otherwise a selected date will be overwritten with Today every time you edit  your data...

Just to put my two cent in:  swap the ";" for ","s

If(SharePointForm1.Mode=FormMode.New,Today(),Parent.Default)

 

 swap the ";" for ","s

That's correct for the US - but in Europe/Germany it's an ";". For me this is the most annoying thing with the Power platform. Who the hell had the idea to distinguish the delimeter of a formula language by country settings?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (36,521)