cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Vidanaw
Level: Powered On

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

Re: format date

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

Re: format date

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

Super User
Super User

Re: format date

use the function inside a expression 

 

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

Vidanaw
Level: Powered On

Re: format date

@Gristy @RobElliott 

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

 

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (6,055)