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 :
Microsoft Power Up Program Community
Answered

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)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    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

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 > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 516 Super User 2025 Season 2

#2
mmbr1606 Profile Picture

mmbr1606 62 Super User 2025 Season 2

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 55 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Introduce yourself!