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 / Power Apps Patch Date ...
Power Apps
Answered

Power Apps Patch Date from DatePicker WITHOUT Time

(0) ShareShare
ReportReport
Posted on by 67

Hi Members,

 

have a requirement in Power Apps to patch the date picker column without time in SharePoint.

I have a SharePoint list [Product Transaction Details]; this list has a Date column [Product Supplied Date], including time.

 

date.png

 

Now, I have added an Edit form connected with the above SharePoint list on my Power Apps screen. This form has a Date picker control, and also with a dropdown of hours and minutes.

 

date1.png

 

 

Whenever the user provides the date and time in the edit form and clicks on the Button control.

The SharePoint list should take only the date rather than the time. 

 

For that, On the Button control -> Set its OnSelect property as:

 

 

Patch(
 'Product Transaction Details',
 Defaults('Product Transaction Details'),
 {
 Title: DataCardKey12.Text,
 'Supplied Product': DataCardValue13.Selected,
 'Is Paid Or Not': DataCardValue15.Value,
 'Product Supplied Date': DateValue(
 DateValue1.SelectedDate - TimeZoneOffset(),
 "en-US"
 )
 }
)

 

 

 

But still, Its taking a random time. But I must patch only the date without time in the SharePoint list. 

 

date2.png

 

 

 

 

 

 

Can anyone please suggest how I can resolve this? Thanks in advance!

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    Try and use 

    DateAdd(DateValue1.SelectedDate , TimeZoneOffset(), TimeUnit.Minutes)

     instead of 

    DateValue(
    DateValue1.SelectedDate - TimeZoneOffset(),
    "en-US"
    )

     

    Best regards,

  • HM-22080408-0 Profile Picture
    67 on at

    Thank you @v-jefferni 

     

    As you suggested, I tried the same formula in my Patch function and the Update property of the Date field.

    But still, it's taking a time value in the SharePoint list randomly.

     

    date3.png

     

     

     

     

     

     

     

     

    Please suggest me how I can resolve this.

     

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    Sorry, I think what you need should be: 

    DateAdd(DateValue1.SelectedDate , -TimeZoneOffset(), TimeUnit.Minutes)

     

    Best regards,

  • HM-22080408-0 Profile Picture
    67 on at

    Hi @v-jefferni 

     

    I tried this formula before, but still it's taking a random time.

    Patch(
     'Product Transaction Details',
     Defaults('Product Transaction Details'),
     {
     Title: DataCardValue12.Text,
     'Supplied Product': DataCardValue13.Selected,
     'Is Paid Or Not': DataCardValue15.Value,
     'Product Supplied Date': DateAdd(
     DateValue1.SelectedDate,
     -TimeZoneOffset(),
     TimeUnit.Minutes
     )
     }
    )

     

     

     

     

    date7.png

     

     

     

     

     

     

     

     

    Please help to resolve this.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    What actual content would you like this field to display, is it 2/12/2024 12:00AM?

     

    Best regards,

  • HM-22080408-0 Profile Picture
    67 on at

    Hi @v-jefferni 


    When the user submits the form, In my SharePoint list, I need to display only date like 2/12/2024.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    Since the date and time column is set to include time, it's not possible. I think you should use a Single line of Text column instead.

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard