Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ph
Helper I
Helper I

how to format today function to string/text

Hi All,

 

I am wondering how to format today function to a string/text

 

FORMAT(TODAY();STRING) or FORMAT(TODAY();TEXT) (I tried also with simple and double quotes) but is does not works
I didn find any info in dax.guide and even not in official documentation (as always)
thank you
2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @ph 

Try for example:

FORMAT(TODAY();"DD-MM-YYYY")

The DAX guide entry for FORMAT does have a link to the supported formats. Check these out:  

https://docs.microsoft.com/en-us/dax/pre-defined-date-and-time-formats-for-the-format-function

https://docs.microsoft.com/en-us/dax/custom-date-and-time-formats-for-the-format-function

 

Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.

Cheers  Datanaut

Hi @AlB 

 

thanks for tip, but it doesn t work 😞 

it will display it in mentioned format, but still it is not string 
I need in string as a input to next calculation where string is required 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.