Skip to content

SharePoint

PATCH A SharePoint Date Column In Power Apps

PATCH A SharePoint Date Column In Power Apps Goal Change the VacationDate column (Date Type) from 11/7/2020 to 12/25/2020 . Input Vacation Requests (SharePoi...

Matthew Devaney
Published
Reading time
1 min read

Before you start

Is this guide for you?

Best entry point
SharePoint
Time investment
1 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/power-apps-patch-function-examples-for-every-sharepoint-column-type/patch-a-sharepoint-date-column-in-power-apps/. Author: Matthew Devaney.

PATCH A SharePoint Date Column In Power Apps Goal

Change the VacationDate column (Date Type) from 11/7/2020 to 12/25/2020 . Input Vacation Requests (SharePoint List) ID EmployeeName VacationDate Hours 1 Matthew Devaney 11/7/2020 8 Patch Function Code Patch(

'Vacation Requests' , LookUp( 'Vacation Requests' , ID= 1 ), {

VacationDate : Date ( 2020 , 12 , 25 ) } ) Code language: JavaScript ( javascript ) Output Vacation Requests (SharePoint List) ID EmployeeName VacationDate Hours 1 Matthew Devaney 12/25/2020 8 Scenario #1: Date Picker

Patch a value found in a date picker to a Date field. Patch Function Code Patch(

'Vacation Requests' , LookUp( 'Vacation Requests' , ID= 1 ), {

VacationDate : DatePicker_VacationDate.SelectedDate } ) Code language: JavaScript ( javascript ) Did You Enjoy This Article? 😺

Subscribe to get new Copilot Studio articles sent to your inbox each week for FREE Enter your email address Sign Me Up

Share this

Tagged

Patch · SharePoint

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →