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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (75,511)