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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DatePicker showing ran...
Power Apps
Unanswered

DatePicker showing random date

(0) ShareShare
ReportReport
Posted on by 7

Hi All. I have a dropdown with Completed and Not Completed. And I have a datepicker to display todays date if Completed is selected. This is the formula I am using for default date but it shows 11/2/2025 in the datepicker box when Completed is selected.

Any ideas?

 

If(
ComboBox1.Selected.Value = "Not Completed",
Blank(),
If(
IsBlank(ThisItem.SignOffDate),
Text(
Today(),
"dd-mm-yyyy"
),
ThisItem.SignOffDate
)
)

Categories:
I have the same question (0)
  • Yogesh Murugan Profile Picture
    443 Moderator on at

    Try this code

    If(
    ComboBox1.Selected.Value = "Not Completed",
    Today(),
    If(
    IsBlank(ThisItem.SignOffDate),
    Today(),
    ThisItem.SignOffDate
    )
    )

  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @zuzuzuzu 

     

    Try this formula:

    If(
     ComboBox1.Selected.Value = "Not Completed",
     Blank(),
     If(
     IsBlank(ThisItem.SignOffDate),
     Today(), // Removed Text() here 
     ThisItem.SignOffDate
     )
    )

     

    Please add any format in the format property in the DatePicker control:

    SpongYe_0-1708694331060.png

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • zuzuzuzu Profile Picture
    7 on at

    Hi @SpongYe ,

     

    That worked but when I go to populate some data in a text field, it shows as a US date.

     

    'Class Status Data':Concat(ForAll(colUserClass,CertName&", "&ClassName&":"&ClassStatus&", Sign Off By:"&SignOffBy&", Sign Off Date:"&SignOffDate&"; "),Value)&varClassStatusData,
            Team:{Value:ComboBox2.Selected.Value}
     
     
    The &SignOffDate& shows as US date. Is there any addition to the code here that it will be saved as EU date?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard