cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SveinT83
New Member

Convert time stamp to european time format

i am seting up an SMS remainder from Outlook calendar, to my customers.

Im converting timezone whitout problem, but the time is showing like this: "12/16/2019 8:00 AM"

i need it to be convertet to: "16/12/2019 08:00"

 

Can any help?

1 ACCEPTED SOLUTION

Accepted Solutions

I got the suluton 🙂

 

In an "Compose" i put this code: "@formatdatetime (body('tf'),'dd-MM-yyyy hh:mm' )"

View solution in original post

6 REPLIES 6
Pstork1
Dual Super User III
Dual Super User III

You can use a custom format string with your converted date time to format it the way you want.  Here's an example

formatDateTime(utcNow(),'dd-MM-yyyy H:mm:ss')

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks. Can i chanche the "utcnow" to what i hawe in the calendar? i the calendar event is in the futore, this output shows todays date and time.

Pstork1
Dual Super User III
Dual Super User III

Yes, you should be able to just substitute the date time string you are generating for the UTCNow().  That was just a quick example to test that it works.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

I dont understand what to change "UTCnow" to, in order to format the time.

 

I did try:

formatDateTime(Test(),'dd-MM-yyyy H:mm:ss

Skjermbilde.PNG

I got the suluton 🙂

 

In an "Compose" i put this code: "@formatdatetime (body('tf'),'dd-MM-yyyy hh:mm' )"

View solution in original post

Pstork1
Dual Super User III
Dual Super User III

You can just use the Enter Custom Value in the time string of the Convert timezone action and paste in the custom format string there.  That will automatically do the formatting when you convert.  Then you won't need an extra compose or FormatDateTime function.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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

Users online (23,008)