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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors