cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted
Super User II
Super User II

Re: format date

use the function inside a expression 

 

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

Highlighted
Helper III
Helper III

Re: format date

@Gristy @RobElliott 

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

 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (4,745)