web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / forms and datepicker
Power Apps
Unanswered

forms and datepicker

(0) ShareShare
ReportReport
Posted on by 249

Hello

I have a date form, and i put the default of this date value to Now(), but when i select another value and submit the form

It uploads the default value not the selected one

Any advise for that?

powerapp1.png

 

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @chahineatallah1 ,
    Are you clicking on Ok button inside the calendar that is displayed when we click on date picker?
    Try using Today() function.

    NandiniBhagya20_0-1682962916503.png

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @chahineatallah1,

    Do you mean that the form reverts the date to the default date not the selected date after you submit form?

     

    If so, I think it is the way how the Edit Form works in Power Apps. Once you submit the form, the form will be in a default mode, which each field will display the default value in corresponding data card.

    So, to display the selected date after you submit the form, we need to set the DefaultDate property as below:

    If(EditForm1.Mode=FormMode.Edit,EditForm1.LastSubmit.date,Today())

     

    The above formula will display your selected date after you submit form, but set the Today() as the default date if you are in a New Form mode.

  • chahineatallah1 Profile Picture
    249 on at

    Hi thanks for the reply

    what i mean is that when i submit the form with my selected date, it updates my excel file with default date not the selected date

    For example my default date in the form is now(), but when i select for example date 4-5-2023, it will updated my excel file with the default date of the form not the selected date which is 4-5-2023

  • chahineatallah1 Profile Picture
    249 on at

    Hi 

    Thanks for the reply

    yes i am pressing on ok button 🙂

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @chahineatallah1 ,
    Check Update property of control in case of -
    1. Default date (when no date is selected/changed) (with Today() and Now() both functions)
    2. Any date (Selected/changed)

    NandiniBhagya20_0-1683022851235.png

     

  • chahineatallah1 Profile Picture
    249 on at

    thanks for reply

    For default date i solved just by using now() or datevalue(date,"dd-mm-yyyy")

     

    My real issue is that when i insert a value into form, for example i put a date of 5-5-2023 , in excel file it updates as 4-5-2023 

    why is that?

    https://1drv.ms/v/s!As-fix_XbK9zgwXc9nzKAs3Rj-Iv?e=wcpl3f 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard