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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.