cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ilu989
Level: Powered On

Display the current time to be the abbreviate of Month

Hi Everyone,

 

I know how to use utcnow to make the current date as DD/MM/YY.......11/02/2020 with the expression @formatDateTime(utcnow(), 'dd-MM-yyyy')

But is it possible to make the date format as DDMMMYYYY, for example, 24OCT2019

 

Hope Flow can do this, thanks.

 

Regards,

ilu989

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Display the current time to be the abbreviate of Month

Hi

According to the documentation formatDateTime() supports "Either a single format specifier or a custom format pattern. The default format for the timestamp is "o" (yyyy-MM-ddTHH:mm:ss:fffffffK), which complies with ISO 8601 and preserves time zone information."

 

So, if we use custom format pattern, in theory it should be possible to request the following format

formatDateTime(utcNow(), 'ddMMMyyyy')

 

If you need it in capital letters, try with

toUpper(formatDateTime(utcNow(), 'ddMMMyyyy'))

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: Display the current time to be the abbreviate of Month

Hi

According to the documentation formatDateTime() supports "Either a single format specifier or a custom format pattern. The default format for the timestamp is "o" (yyyy-MM-ddTHH:mm:ss:fffffffK), which complies with ISO 8601 and preserves time zone information."

 

So, if we use custom format pattern, in theory it should be possible to request the following format

formatDateTime(utcNow(), 'ddMMMyyyy')

 

If you need it in capital letters, try with

toUpper(formatDateTime(utcNow(), 'ddMMMyyyy'))

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Community Support Team
Community Support Team

Re: Display the current time to be the abbreviate of Month

 

Hi @ilu989 ,

 

Please try the methods provided by @efialttes to achieve the requirements. I tested it on my side and this method fits your needs.

120.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ilu989
Level: Powered On

Re: Display the current time to be the abbreviate of Month

Hi @efialttes ,

 

Thanks for your instruction, that's work and amazing!

@formatDateTime(utcNow(), 'ddMMMyyyy')

 

Regards,

ilu989

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (9,459)