cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

format date

Hi All,

Can someone please tell me how to convert 2019-12-02T22:54:44.0000000 to 02-12-2019 (dd-mm-yyyy).

this value (2019-12-02T22:54:44.0000000) assigned to a variable called duedate.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Hi @Vidanaw you can format the date in 2 ways, either using a formatDateTime expression in a Compose action, or using the Convert Time zone action. The output of whichever one you use can be selected from the dynamic content and then used in other actions.

 

formatDate.png

 

formatDate-output.png

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

3 REPLIES 3
Super User
Super User

Hi @Vidanaw you can format the date in 2 ways, either using a formatDateTime expression in a Compose action, or using the Convert Time zone action. The output of whichever one you use can be selected from the dynamic content and then used in other actions.

 

formatDate.png

 

formatDate-output.png

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

View solution in original post

Resident Rockstar
Resident Rockstar

use the function inside a expression 

 

formatDateTime(yourstring, 'dd-mm-yyyy')

@Gristy @RobElliott 

Thank both of you I have used convert time zone, it works.

 

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (76,261)