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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / date format issues - i...
Power Automate
Unanswered

date format issues - iso 8601

(0) ShareShare
ReportReport
Posted on by 576

I have an excel list that i'm taking and creating a sharepoint item for each row. The problem is that the dates for Start and End are in format '9/26/2023 10:00 AM Eastern' and I can't figure out how to convert it to ISO 8601 so that i can create a teams meeting in the flow. I appreciate any help you can give. 

Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

     

     

    I assume "Eastern" is EST

    convertToUtc(
    	parseDateTime(
    		replace('9/26/2023 10:00 AM Eastern', ' Eastern', ''),
    		'us-en',
    		'M/d/yyyy hh:mm tt'
    	),
    	'Eastern Standard Time'
    )

      

  • ahhollan Profile Picture
    576 on at

    What if I want to replace below with the actual column name so that all rows and values are processed?

    '9/26/2023 10:00 AM Eastern'

     

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    Maybe better without using replace but "Eastern" in the format string

    convertToUtc(
    	parseDateTime(
    		'9/26/2023 10:00 AM Eastern',
    		'us-en',
    		'M/d/yyyy hh:mm tt "Eastern"'
    	),
    	'Eastern Standard Time'
    )

     

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    What is your column name? Are you processing this in a loop? In a Select?

    Maybe you should show some of your flow.

  • ahhollan Profile Picture
    576 on at

    Column name is 'Start' for start date. I'm processing in a loop for each item. 

    ahhollan_0-1695391884599.png

    Spreadsheet columns look like this:

    ahhollan_0-1695392021606.png

     

  • Verified answer
    Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    Here it should be items('Apply_to_each')['Start']

    So the expression would be

    convertToUtc(
    	parseDateTime(
    		items('Apply_to_each')['Start'],
    		'us-en',
    		'M/d/yyyy hh:mm tt "Eastern"'
    	),
    	'Eastern Standard Time'
    )

     

     

    In general:

    1. Put the cursor to the input where you want to place the reformatted date
    2. Switch to expression
    3. Paste my expression
    4. Delete the date string from this expression (pay attention to the cursor position)
    5. Switch to Dynamic Content
    6. Click the value from the Dynamic Content

     

  • ahhollan Profile Picture
    576 on at

    I'm getting the following error now - Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Create_item' at line '1 and column '5109' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Create_item' to be referenced by 'repeatItems' or 'items' functions.'.'.  

    When I paste the formula in the expression box, I don't see 'Start' as available dynamic content when I go to that tab.

     

  • Chriddle Profile Picture
    8,436 Super User 2025 Season 2 on at

    Have you renamed the Apply to each action?

     

    In the screenshot above "Start" is present 😉

    Also the fact that the error message says "Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Create_item'" implies, that you have changed somthing.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard