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 / Patching date and time...
Power Apps
Answered

Patching date and time field to a SharePoint list

(0) ShareShare
ReportReport
Posted on by 66

Hi all,

I have a form in PowerApps with a data source of SharePoint. The date fields have type of date and time in a SharePoint. I am collecting entries into a collection and then I want to save them back to a SharePoint list.


I have tried to use the following formula to save date and time inside the Patch formula:

StartOfFootage: DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), Value("00"))

However, once saved I get the following outcome in SharePoint: 

ekoz21_0-1626073775090.png

Any ideas how can I patch date and time from a collection?

 

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

    Hi @ekoz21 ,

    Try this

    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.

  • ekoz21 Profile Picture
    66 on at

    Hi, the formula that you provided works perfectly when adding date and time into a collection, however, it returns today's date when patching.

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @ekoz21 ,

    Very strange as you are referring to the value in a Date Picker - it cannot "invent" today's date as you would need to refer to Today() or Now() in the formula.

    Can you please post (in Text) the exact formula of your Patch.

  • ekoz21 Profile Picture
    66 on at

        Patch(

        VideoRecordings,

        Defaults(

            VideoRecordings

            ),

        {

            NumOfCamera: NumOfCamera_lbl.Text,

            StartOfFootage: DateValue1.SelectedDate +

            Time(

                Value(HourValue1.Selected.Value),

                Value(MinuteValue1.Selected.Value),

                0

                ),

            ShortDescription: Description_lbl.Text

       }

    );

  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    @ekoz21 ,

    The only thing left is the date picker - what do you get if you put

    Text(DateValue1.SelectedDate,"dd/mm/yyyy")

    in a label Text.
    I just ran the exact code here creating a new record with two date/time fields and got the expected result.

     

    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.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard