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

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
RobElliott
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
RobElliott
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

Gristy
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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,461)