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 / How to patch date and ...
Power Apps
Answered

How to patch date and time from date and time picker

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I am trying to patch a date and time to SP List from the date and time picker of my power apps form. 

latricekong_0-1625619286222.png

 

My current formula only patches the date but not the time.

 

 

 

Patch(
 'Walkdown Requests_1',
 Defaults('Walkdown Requests_1'),
 {
 'Proposed Date & Time':DateValue1.SelectedDate
 }
 )

 

 

 Thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Anonymous ,

    Assuming the control names below

    Patch(
     'Walkdown Requests_1',
     Defaults('Walkdown Requests_1'),
     {
     'Proposed Date & Time':
     DateValue1.SelectedDate + 
     Time(
     Value(HourValue1.Selected.Value), 
     Value(MinuteValue1.Selected.Value), 
     0
     )
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • natng Profile Picture
    5 on at

    Hi there, 

     

    I tried the solution method provided, while the rest of my fields patched through, my DateValue still does not change on Sharepoint. What seems to be the problem?

    Patch(RequestTicket,
     LookUp(RequestTicket, 
     RequestID=Text(RequestHistoryLog_Gallery.Selected.RequestID)), 
     {
     CollectionDateTime:DateValue(DateValue2.SelectedDate + Time(Value(HourValue2.SelectedText.Value), Value(MinuteValue2.SelectedText.Value),0), ShortDate),
     CollectorName:Text(DataCardValue47), 
     'CollectorContactNo.':Value(DataCardValue48.Text), 
     Remarks:Text(DataCardValue40)
     });



    Thank you.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    @natng ,

    You had some extra bits in there not in the post below

    Patch(
     RequestTicket,
     LookUp(
     RequestTicket, 
     RequestID = Text(RequestHistoryLog_Gallery.Selected.RequestID)
     ), 
     {
     CollectionDateTime:
     DateValue2.SelectedDate + 
     Time(
     Value(HourValue2.SelectedText.Value), 
     Value(MinuteValue2.SelectedText.Value),
     0
     ),
     CollectorName: Text(DataCardValue47), 
     'CollectorContactNo.': Value(DataCardValue48.Text), 
     Remarks: Text(DataCardValue40)
     }
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard