web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

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:
I have the same question (0)
  • 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

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 Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard