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 / Add date using simple ...
Power Automate
Unanswered

Add date using simple yymmdd

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    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. 🙂

  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    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

     

  • whissi Profile Picture
    43 on at

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

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard