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 / Format date to remove ...
Power Automate
Unanswered

Format date to remove time stamp then combine formatted date with time field for 16 SP columns

(0) ShareShare
ReportReport
Posted on by

I have a SP list called "Training Class Details". The list has a date field for the first day of training. The subsequent 15 days of training are calculated date fields based on that first day, excluding weekends. Each date of training also has it's own training start time and training end time (i.e. Day 1 Date, Day 1 Start Time, Day 1 End Time, Day 2 Date, Day 2 Start Time, Day 2 End Time, etc.) I'm using Power Automate to create Outlook events for each of the 16 training dates for each class.

 

I have the flow working but I'm having to format each date column to remove the time stamp then concat the formatted date with the start time, and concat the formatted date with the end time in 3 separate actions in order to pull in the formatted date/time output for each Outlook event.

nmg_0-1629837116205.png

 

I think there may be a more streamlined way to set up my SP columns, but I'm not sure.

nmg_1-1629837180541.png

 

If I keep the SP columns the way they are, is there a way in Power Automate to build an array or do a "for each" loop to format each of the date, start time, and end time columns in one action?

 

Is there also a way to create each of the 16 events in a "for each" action?

 

Thanks for your help!

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    You can do a select and format every column like below...

     

    PrasadAthalye_0-1629848707496.png

     

    concat(string(formatDateTime(item()?['Created'], 'mm/dd/YYYY')), item()?['Time'])
  • nmg Profile Picture
    on at

    Thank you. That helps. I also figured out how to add a calculated column on my SP list which combines the Day and time columns into one.

     

    Do you know of a way to loop through each training date and create an event for each without having to have a "create event" action for each event?

     

    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 Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard