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 / DatePicker for CDM pro...
Power Apps
Unanswered

DatePicker for CDM properties field - Different by ONE DAY & Date Comparison

(0) ShareShare
ReportReport
Posted on by 2,944

Hi PG

 

Glad to have CDM.

Again, just like initial stage in Jan 2016, where I posted many doubts and questions on DATE and finally resolved, in Excel.

Now, in CDM, Date format again giving me a lot of nightmares.

 

In Productivity Apps, Date is the most important field and must be easily picted like DatePicker.

(though dropdown for Year, Month and Day can be on option but that is for Tablet/PC. For Mobile Phone, the screen is very limited and hence DatePicker is crucial).

 

DatePicker:

 

I have no problem to select date from DatePicker1.SelectedDate to be inserted into EXCEL.

But in CDM, I have just found a bug.

- Date Properties: set to DATE, will result in Extra One Day

- e.g.: DatePicker = 19/08/2016, but after saving, the displayed date is 20/08/2016.

 

However, in CDM, if I ignore the Date properties and set it as TEXT, and when saving, {... Date: Text(DatePicker1.SelectedDate, "dd/mm/yyyy"...}, then the date will be no problem.

 

Screenshot (6).png

 

2. Date Comparison

 

When using Excel, I can easily use Filer. But in CDM, it give me warning.

 

The following syntax was given warning:

- Filter(SalesPlanPL, DatePicker2.SelectedDate = Date);

- Filter(SalesPlanPL, Filter(SalesPlanPL, DateValue(Text(DatePicker2.SelectedDate, "dd/mm/yyyy"), "fr") = DateValue(Text(Date, "dd/mm/yyyy"), "fr"))

- Date is one of the field appended with DatePicker.SelectedDate

 

Thanks and please advice fixing of bugs or syntax.

 

 

 

 

 

Categories:
  • aftowen Profile Picture
    Microsoft Employee on at

    Does the first problem recur if you set the DateTimeZone property of the DatePicker control to UTC (not Local)?

  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    Thanks for replying to first question.

    NOPE!

    I tested for both DateTimeZone: UTC and Local. Both DatePicker are giving One Extra Day.

     

    Surely there is something wrong.

    Currently I have no choice but set the properties of Date in Entity to TEXT and format during saving.

     

    Awaiting for further confirmation.

    TQ

  • Vijeta Profile Picture
    Microsoft Employee on at

    Hello

     

    Thank you for your feedback. Can you please tell if you face the same issue (different by one day) when you use app from data on your entity?

  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    As explained in my first posting, if the Properties of Date is set to TEXT, I have no problem to add DatePicker in app and the date is alright. Only when I use Date for the Properties of the entity then extra one day will definitely happen.

     

    Excel with DatePicker has no problem, too.

     

    Please verify.

  • aftowen Profile Picture
    Microsoft Employee on at

    Vijeta, this problem repro'd for me when I created an app from blank and used the Patch function.

     

    It didn't repro when I:

    • automatically generated an app from data
    • created an app from blank, added an Edit form, and used the SubmitForm function

     

    pkhong.png

     

     

  • hpkeong Profile Picture
    2,944 on at

    Hi and thanks to Aftowen.

     

    Wish Vijeta can ehlp to investigate what actually goes wrong with the DatePicker which produces different outcomes under different scenario.

     

    Thanks in advance.

  • Vijeta Profile Picture
    Microsoft Employee on at

    This issue has been fixed in the latest release (2.0.500) of the studio. Thanks

  • hpkeong Profile Picture
    2,944 on at

    HI

     

    I have replied on another post that the issue was resolved in 500 version.

    Thanks.

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard