cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Re: How to set current date as default date in date picker everytime page loads

Hi,

 

But my customised Form only has one screen and items are added on sharepoint list and viewed from sharepoint list. 

When trying to view previous requests the datepicker is changing to today's date.

 

Thanks,

MK

 

Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How to set current date as default date in date picker everytime page loads

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.

alikhan_3
Level: Power Up

Re: How to set current date as default date in date picker everytime page loads

how can get timestamp in date picker?

akmiecik
Level: Powered On

Re: How to set current date as default date in date picker everytime page loads

Set DefaultDate of Date Picker to:

Now()

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,839)