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 / Sending Correct Date F...
Power Apps
Answered

Sending Correct Date Format To SQL

(0) ShareShare
ReportReport
Posted on by 84

Hi,

 

In my application I send a datetime variable as a parameter to SQL server via PowerAutomate. My app allows the user to create this datetime variable in his local datetime format. Thus I can end up with dd/mm/yyyy or mm/dd/yyyy. I am trying to figure out the best way to send this date to SQL so it can correctly interpret the format. It is currently processing the mm/dd/yyyy correctly and is unable to process the dd/mm/yyyy. Any help would be appreciated. 

 

DeeCiii15_0-1677260421569.png

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can try to send the date to Power Automate in a "universal" format, such as 'yyyy-mm-dd', which should work for all locales:

    Set(
     varResponse1,
     procFilterSlotTable.Run(
     parmAxis,
     Text(parmEndDateTime, "yyyy-mm-dd"),
     parmScenarioID,
     parmSite,
     Text(parmStartDateTime, "yyyy-mm-dd"),
     varUserLocation).notification)

    Hope this helps!

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard