cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ilu989
Advocate II
Advocate II

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
efialttes
Super User III
Super User III

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
efialttes
Super User III
Super User III

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

v-bacao-msft
Community Support
Community Support

 

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.

Hi @efialttes ,

 

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

@formatDateTime(utcNow(), 'ddMMMyyyy')

 

Regards,

ilu989

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,528)