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 Automate / Convert time connector...
Power Automate
Unanswered

Convert time connector fails for specific hour

(0) ShareShare
ReportReport
Posted on by 20

hey,

 

i have an issue with time convert connector, for example my JSON that triggering the flow (HTTP end point) look like this:

{

"Date Created": "'2022-11-06 01:16:19'"
}
 
the flow is failing on an attempt to make time zone conversion:
 
elizi_0-1668439635450.png

 

the problem is that is failing only if the hour in the time stamp is - "01"

other hours and other time zones conversions was tried with no luck.

 

the time zone convert action:

 

elizi_1-1668439868365.png

 

the replace expression contains:

replace(replace(triggerBody()?['Date Created'],' ','T'),'''','')
 
did anybody came across with such issue?
 
thanks!
Eli.

 

Categories:
  • BrettyMandrin Profile Picture
    18 on at

    There are many formats supported by SQL Server - see the MSDN Books Online on CAST and CONVERT. Most of those formats are dependent on what settings you have - therefore, these settings might work some times - and sometimes not.

    The way to solve this is to use the (slightly adapted) ISO-8601 date format that is supported by SQL Server - this format works always - regardless of your SQL Server language and dateformat settings.

    The ISO-8601 format is supported by SQL Server comes in two flavors:

    YYYYMMDD for just dates (no time portion); note here: no dashes!, that's very important! YYYY-MM-DD is NOT independent of the dateformat settings in your SQL Server and will NOT work in all situations!
    or:

    YYYY-MM-DDTHH:MM:SS for dates and times - note here: this format has dashes (but they can be omitted), and a fixed T as delimiter between the date and time portion of your DATETIME.

     

    Hope this helps,
    John

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard