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 / Extract Month From Date
Power Automate
Unanswered

Extract Month From Date

(0) ShareShare
ReportReport
Posted on by 64

My goal is to filter an Excel file by month and then saving the months in their own file. So all months beginning with 10 will be saved together in an October file. 

 

I have initialized a CurrentMonth and CurrentYear variable. They are strings. These are working currently. 

 

I'm trying to filter an array. The column is called EndProductionTime. It's text in the format of "mm/dd/yyyy hh:mm:ss". I'm trying to filter EndProductionTime by if it is equal to CurrentMonth. The inputs are correct, but the output is always empty []. 

 

pgd_0-1696625707213.png

Can you please help me with the expression to put in the highlighted box below? Any insight is appreciated. 

pgd_1-1696625747520.png

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @pgd 

     

    Pls try below query in filter array action. Click on "Edit in advanced mode" and then write the query in the textbox:

    ManishSolanki_0-1696645695066.png

    @equals(formatDateTime(item()?['EndProductionTime'], 'MM'), variables('CurrentMonth'))

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    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

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