How to set current date as default date in date picker everytime page loads?
Solved! Go to Solution.
In your case then you'd reference the mode of the SharePoint form:
If( SharePointForm1.Mode = FormMode.New, Today(), Parent.Default)
The mode property of that form will vary depending on whether it's being used to add a new item or to edit an existing one.
how can get timestamp in date picker?
Set DefaultDate of Date Picker to:
Now()
That should be
UpdateContext({currentDate: Today() - 1}); UpdateContext({currentDate: Today()});
not a comma after currentDate:
UpdateContext({currentDate: Today() - 1}); UpdateContext({currentDate, Today()});
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
57 | |
45 | |
36 | |
36 |
User | Count |
---|---|
270 | |
78 | |
78 | |
76 | |
69 |