@Specthildur -
Basic example:
Add a Button or an Icon control into your App. On the OnSelect property of that control, enter:
UpdateContext({ctx_reset_date: ""});
Reset('Your DatePicker')
On the DefaultDate property of the Date Picker control, enter:
ctx_reset_date
For a Date Control embedded into an Edit Form control, I would approach it this way:
Add a Button or Icon into the one of the Data Cards (most logically I would place the control inside the Data Card which holds the Date Picker control).
On the OnSelect property of the Button, enter:
UpdateContext({ctx_reset: false});
UpdateContext({ctx_reset: true});
UpdateContext({ctx_reset_date: ""});
Reset('Your Date Picker')
On the DefaultDate property of the Date Picker control, enter:
If(
ctx_reset,
ctx_reset_date,
Parent.Default
)
Depending on how you're populating the Item property of the Edit Form (for example via a Gallery selection), ensure you set the context variable to false on the OnSelect property of the Gallery using:
UpdateContext({ctx_reset: false});