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 / 'Create event (V4)' Al...
Power Automate
Unanswered

'Create event (V4)' Always Sets the Wrong Time

(0) ShareShare
ReportReport
Posted on by 2
I'm trying to set appointments using data from a spreadsheet. The appointment start time is formatted like "2/27/2025 13:00". The 'Time zone' field is set to Central Time.
 
No matter what expression Copilot suggests, the appointment is always set for 6:00 am instead of 1:00 pm. Here are two examples I would expect to yield different start times but they both set the appointment to 6:00 am:
 
formatDateTime(convertTimeZone(items('Apply_to_each')?['Appointment'], 'UTC', 'Central Standard Time'), 'yyyy-MM-ddTHH:mm:ssZ')
 
formatDateTime(convertTimeZone(items('Apply_to_each')?['Appointment'], 'Central Standard Time', 'UTC'), 'yyyy-MM-ddTHH:mm:ssZ')
 
How do I ensure that "13:00" is added to my calendar at 1:00 pm?
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    Do not do any conversion of the date. Just format the date as it is shown in the action and select the time zone: 
    In other words: 2025-02-19T13:00:00 (yyyy-MM-ddTHH:mm).
     
    If you are doing the time zone conversion to get the time to be 13;00, then double-check that your expression is returning that value and it is formatted as above without the Z at the end, which indicates UTC. You can check this by adding your expression to a compose action. When you review the flow run, you can easily see what the expression passed to the create event action.
  • JayRenn Profile Picture
    2 on at
    Your suggestions worked, but then I decided I would make more sense to have the user launch a flow within Excel, so I built a new Power Automate flow from within Excel. Now all the dates are coming in as decimals, and neither copilot nor chat GPT have any idea how to convert them correctly. How do I change a decimal date/time into a string date/time with the format "yyyy-MM-ddTHH:mm"? It certainly isn't any of these options:
     
    formatDateTime(convertTimeZone(items('Apply_to_each_Row_in_the_Table')?['Appointment'], 'Central Standard Time', 'UTC'), 'yyyy-MM-ddTHH:mm:ssZ')
    ​
    formatDateTime(items('Apply_to_each_Row_in_the_Table')?['Appointment'], 'yyyy-MM-ddTHH:mm:ss')
     
     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard