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!

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,634)