Table of contents
TOC
Collapse the table of content
Expand the table of content

Text.From

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns the text representation of a number, date, time, datetime, datetimezone, logical, duration or binary value. If a value is null, Text.From returns null. The optional culture parameter is used to format the text value according to the given culture.

Text.From(value as any, optional culture as nullable text) as nullable text  

Arguments

ArgumentDescription
valueValue to convert.
optional cultureA text value corresponding to the culture values supported on your version of Windows, such as "en-US". If the culture is not specified, the current user culture is used. For a list of culture names, see National Language Support (NLS) API Reference.

Examples

Text.From(1) equals "1"  
Text.From(#date(2013,5,1)) equals "05/01/2013"  
Text.From(#date(2013,5,1),"fr-FR") equals "01/05/2013"  
© 2018 Microsoft