web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ZPmp2abMcVH6gDpHpr+IAl
Power Automate - General Discussion
Answered

Add date using simple yymmdd

Like (0) ShareShare
ReportReport
Posted on 22 Oct 2022 19:56:44 by 43

Hello Guys,

 

I am trying to add a date to update sp list through power automate by using (triggerOutputs()?['body/Created']) but its giving me result of (2022-10-22T19:04:31Z) and I don't what that I need it to be 221022 {yymmdd} so I can use it as code numbers.

 

Any help will be appreciated

  • whissi Profile Picture
    43 on 23 Oct 2022 at 08:38:16
    Re: Add date using simple yymmdd

    @Sundeep_Malik  and @grantjenkins Thanks for your help both worked.

     

  • Verified answer
    grantjenkins Profile Picture
    11,059 Moderator on 23 Oct 2022 at 07:56:25
    Re: Add date using simple yymmdd

    You can get this a couple of ways.

     

    Option 1: Have a Compose or Variable using the expression:

    formatDateTime(triggerOutputs()?['body/Created'], 'yyMMdd')

    grantjenkins_0-1666511556774.png

     

    Option 2: If you wanted to convert it to your time zone (dates come through using UTC time zone) then the easiest way is to use Convert time zone as so:

    grantjenkins_4-1666511767566.png

     

     

    The outputs for both options are below:

    grantjenkins_2-1666511682963.png

     

  • Verified answer
    Sundeep_Malik Profile Picture
    6,482 on 23 Oct 2022 at 07:56:17
    Re: Add date using simple yymmdd

    Hey @whissi 

     

    Just write this:

     

    formatDateTime(triggerOutputs()?['body/Created'],'yyMMdd')

     

    write the above expression. I didn't try it on my end but it should work.

     

    If it works, you can mark this answer as the solution and also thumbs up 👍 the post. It really helps. 🙂

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete