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

How to change the date format when patching SP

(0) ShareShare
ReportReport
Posted on by 20

Hi all!

I want to patch a "date & time" column on SharePoint and Date: Now() is working OK on the app, pathing SharePoint with the value eg: 09/24/2021

 

Patch(Transactions,

Defaults(Transactions),

{

Title: Gallery1.Selected.Title,

Date: Now()

}

)

 

but what if I want to change the format of the date on how it is patched on SP? If I use Text( Now(),"[$-en-US]dd/mm/yyyy hh:mm"), it gives me an error that this is text while SP waits for date type.

Ideally I would want to store it on SP like DD/MM/YYY hh:mm

 

Any idea? 

Thank you! 

Categories:
I have the same question (0)
  • C-Papa Profile Picture
    1,836 on at

    Hi , nothing you do it PowerApps will fix this, its the way your SharePoint site is configured. have a look at the below article which should help you out

     

    How to change date format in SharePoint - SharePoint Maven

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @PerKou,

    Have you solved you problem?

    Do you want to format your date time as "DD/MM/YYY hh:mm" and save it to your "date & time" column on SharePoint?

    Could you please tell me that if your date and time column allows time?

     

    1). Make sure that your Date and time column includes time:

    vqiaqimsft_0-1632722814651.png

    2). Modify your formula as below:

    Patch(Transactions,
    Defaults(Transactions),
    {
    Title: Gallery1.Selected.Title,
    Date: Now()
    }
    )

    vqiaqimsft_1-1632722922215.png

    Check if this could help you at some degree.

  • PerKou Profile Picture
    20 on at

    it helped a lot thanks!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard