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
You can get this a couple of ways.
Option 1: Have a Compose or Variable using the expression:
formatDateTime(triggerOutputs()?['body/Created'], 'yyMMdd')
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:
The outputs for both options are below:
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. 🙂
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2