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

Community site session details

Session Id :
Power Up Program - Building model-driven apps w...
Suggested answer

PCF Datepicker in Model-driven powerapp

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I built a PowerApps Component Framework (PCF) control that overlays a Fluent UI DatePicker on model-driven apps. The idea is to unlock more customization (date ranges, initial dates, etc.) while still binding to a Dataverse date field.

The issue:

My PCF only binds to fields of type Date and Time, not to fields of type Date Only. As a workaround, I can temporarily change the column format to Date and Time, bind the control, and then switch it back to Date Only. This works, but it feels fragile, and I’m not sure if exporting/importing the solution would preserve the binding.

I found an open-source project (GitHub - BIDSL/PCFControls) where their date picker binds directly to Date Only fields. I compared manifests and TypeScript, but I couldn’t figure out why theirs works and mine doesn’t. I also experimented with of-type-group in the manifest to allow both DateAndTime.DateOnly and DateAndTime.DateAndTime, but that didn’t solve it.

At this point, I’d even be fine with having two separate versions of my control (one for Date Only, one for Date and Time), but I’d prefer a single solution if possible.


Has anyone managed to build a PCF that binds to both DateOnly and DateAndTime fields cleanly or could share some insight/tips to help my issue?

 

Thanks in advance for any insights!

Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    13,644 Super User 2025 Season 2 on at
    PCF Datepicker in Model-driven powerapp
    hey
     
     
    this is the wrong section of the forum, please repost in the powerapps part to be found here:
     
     
     

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

Leaderboard > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 169 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 136 Super User 2025 Season 2

#3
Gagan Singh Profile Picture

Gagan Singh 73

Last 30 days Overall leaderboard

Featured topics