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 Automate
Unanswered

Date condition

(0) ShareShare
ReportReport
Posted on by

I am having trouble using the dayofWeek function in power automate. I want to use the condition for different days of the week but don't know what to enter in the vatlue for date time string 

 

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'In function 'dayOfWeek', the value provided for date time string 'yyyy-MM-dd' was not valid. The datetime string must match ISO 8601 format.'.

Categories:
  • Ellis Karim Profile Picture
    12,315 Super User 2026 Season 2 on at

    This is the format of the time stamp:

    dayOfWeek('2022-03-17')

    and with a time:

    dayOfWeek('2022-03-17T13:27:36Z')

     

    which returns 4.

     

    See: Reference guide for expression functions - Azure Logic Apps | Microsoft Docs | dayOfWeek

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard