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 / Date picker to set it ...
Power Automate
Answered

Date picker to set it monthly

(0) ShareShare
ReportReport
Posted on by 95

Hi All,

 

May i know is it possible for PAD to be able to each time, it will chose a date that is a month before which is like choosing November 1st for the start date, and the end date with 31st of the month? 

But i need to run this every month, is it doable? 

 

date pick.png

 

Thanks

  • VJR Profile Picture
    7,635 on at

    @foxngn84 

    yes, its possible.

    For the end date, do you mean last day of current month or next month?

     

     

  • foxngn84 Profile Picture
    95 on at

    may i know how do i do that? 

    the end date is the last day of the previous month. 

     

    each month, i need to extract a full month data of the previous month. 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Copy paste the below into a blank Flow editor and run the flow

     

    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateOnly CurrentDateTime=> CurrentDateTime
    DateTime.Add DateTime: CurrentDateTime TimeToAdd: -1 TimeUnit: DateTime.TimeUnit.Months ResultedDate=> ResultedDate
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: ResultedDate CustomFormat: $'''01/MM/yyyy''' Result=> StartDate
    DateTime.Add DateTime: StartDate TimeToAdd: 1 TimeUnit: DateTime.TimeUnit.Months ResultedDate=> ResultedDate
    DateTime.Add DateTime: ResultedDate TimeToAdd: -1 TimeUnit: DateTime.TimeUnit.Days ResultedDate=> ResultedDate
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: ResultedDate CustomFormat: $'''dd/MM/yyyy''' Result=> EndDate
    Display.ShowMessageDialog.ShowMessage Message: $'''The start date is: %StartDate%
    The end date is: %EndDate%''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed2
    

     

     

     

    VJR_0-1670484590493.png

     

     

    Once you get the dates write them to the datepicker textboxes.

  • foxngn84 Profile Picture
    95 on at

    Thanks @VJR  i able to get it runs with your guide here. Appreciated !

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
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard