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 / How to Get Last Month'...
Power Automate
Unanswered

How to Get Last Month's Time with Power Automate Desktop Version

(2) ShareShare
ReportReport
Posted on by 2
For example:
(1) Today is 2025.4.7, I need to obtain 2025.3.1 and 2025.3.31
(2) If it is a day in March, I need to obtain 2025.2.1 and 2025.2.28
 
Is there an expert who can help guide the method of implementing with PAD,Thank you.
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    Please refer the below flow for reference:
     
    You can copy paste this to your flow as well 
     
    SET CurrentDateTime TO D'2025/04/25 00:00:00'
    DateTime.Add DateTime: CurrentDateTime TimeToAdd: -1 TimeUnit: DateTime.TimeUnit.Months ResultedDate=> ResultedDate
    DateTime.Add DateTime: ResultedDate TimeToAdd: $'''-%ResultedDate.Day - 1%''' TimeUnit: DateTime.TimeUnit.Days ResultedDate=> StartDate
    DateTime.Add DateTime: StartDate TimeToAdd: 1 TimeUnit: DateTime.TimeUnit.Months ResultedDate=> EndDate
    DateTime.Add DateTime: EndDate TimeToAdd: -1 TimeUnit: DateTime.TimeUnit.Days ResultedDate=> EndDate
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: StartDate CustomFormat: $'''yyyy.MM.dd''' Result=> StartDate
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: EndDate CustomFormat: $'''yyyy.MM.dd''' Result=> EndDate
     
     
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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