cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Formatting date and time in MS Flow (but with seconds)

Hello everyone,

 

I know this is a very common topic that has been asked arond and I'm sorry in advance. But I've looked about everywhere I could think of, and I just can't seem to find a definite answer to what I need.

 

I'm trying to get the date and time with utcNow(), and formatting it with formatDateTime() like this :

 

dd-mm-yyyy_hh-mm-ss <--- seconds

07-05-2021_11-04-32

 

Does anyone know how to achieve this ?

 

Thank you so much

1 ACCEPTED SOLUTION

Accepted Solutions
CFernandes
Super User
Super User

Hey Mate, You point at d-mm-yyyy_hh-mm-ss <--- seconds, I am bit confused.

 

You can use below -

 

formatDateTime(utcNow(),'dd-mm-yyyy_hh-mm-ss')
 
Output would be -
 
CFernandes_0-1620379676364.png

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
CFernandes
Super User
Super User

Hey Mate, You point at d-mm-yyyy_hh-mm-ss <--- seconds, I am bit confused.

 

You can use below -

 

formatDateTime(utcNow(),'dd-mm-yyyy_hh-mm-ss')
 
Output would be -
 
CFernandes_0-1620379676364.png

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Hey @CFernandes,

 

Welp... this is kind of embarassing... I've tried exactly that, but it never did and now I guess it does. It used to make my flow run forever and I had to stop it each time by force.

 

I guess I'm a little dumb, thanks for the help and sorry for the confusion!

@Anonymous Firstly you are new to Power Automate so no need to get embarrassed. expression can be tricky at times. 

 

With reference to your update. I assume your problem is resolved.

 

Please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,631)