Showing results for 
Search instead for 
Did you mean: 
Post Partisan
Post Partisan

Default date displayed for day

I'm creating a time sheet for employees within an organisation and I want to know is it possible that whenever a employee wants to add a new entry or edit a day for a specific day that it would only display the date on the given day. I have a button that will populate the time so I just want that date picker will automatically display the date for the day as well for the clock out button.


This is the set variable used for the clock in button: VarCurrentDateTime

And for the clock out button: VarCurrentDateTime2

Resident Rockstar
Resident Rockstar

Is your Date Picker intended to allow them to change the date? If it's read-only, then I wouldn't even both with a Date Picker and would instead simply use a label that's in DisplayMode.View, with the value.


If you want/expect them to use the Date Picker to change the date, then you can simply set the DefaultDate property equal to your variables.


Depending on how they are formatted, you may need to convert them to a date friendly value.

  • "1/1/2020" would work
  • DateValue("1/1") would take that simple string and product 1/1/2020, 12:00 AM, and would work

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,883)