Power Query
Search…
Date.ToText

Date.ToText

Returns a textual representation of the Date value.
function (optional date as nullable any, optional format as nullable any, optional culture as nullable any) as nullable any

Description

Returns a textual representation of date, the Date value, date. This function takes in an optional format parameter format. For a complete list of supported formats, please refer to the Library specification document.

Category

Date

Examples

Get a textual representation of #date(2010, 12, 31).
1
Date.ToText(#date(2010, 12, 31))
Copied!
"12/31/2010"
Get a textual representation of #date(2010, 12, 31) with format option.
1
Date.ToText(#date(2010, 12, 31), "yyyy/MM/dd")
Copied!
"2010/12/31"
Last modified 3yr ago