Skip to main content

Notifications

Community site session details

Community site session details

Session Id : yHiF1SVpAXkQH812cTEw/j
Power Automate - Power Automate Desktop
Answered

Extract Month, Day, and Year from Excel table in Power Automate DESKTOP

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2023 19:42:50 by 28

I can read a date from a table in Excel and convert using "Convert text to datetime" to produce a variable, but need to find the day, month and year so I can populate a custom date picker.  I have found solutions for cloud flows, but not for a desktop flow.

  • Verified answer
    Aakashch_1998 Profile Picture
    40 on 23 Mar 2023 at 10:11:04
    Re: Extract Month, Day, and Year from Excel table in Power Automate DESKTOP

    Hi @RedCoatinOhio1 

    You can fetch Day, Month ,Year from Output Variable Property (Output variable of Convert Text to Datetime Action)
    Screenshot (7).png

     

    Thanks & Regards
    @Aakashch_1998 

  • MichaelAnnis Profile Picture
    5,721 Super User 2025 Season 1 on 22 Mar 2023 at 21:23:16
    Re: Extract Month, Day, and Year from Excel table in Power Automate DESKTOP

    After converting text to datetime, you can convert datetime to text and make a different variable for each one:

     

    So, if datetime is 3/1/23, all the convert to text would be the following:

    yy=23

    yyyy=23

    M = 3

    MM = 03

    MMM = Mar

    MMMM = March

    d = 1

    dd = 01

     

    Good luck!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started