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

Date.FromText

Owen Duncan|Last Updated: 4/19/2018

About

Returns a Date value from a set of date formats and culture value, following ISO 8601 format standard.

Date.FromText(date as nullable text, optional culture as nullable text) as nullable date  

Arguments

ArgumentDescription
dateA string value to transorm.
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.

Supported formats

  • yyyy-MM-dd

  • YYYYMMDD

  • M/d/yyyy

Terms

  • Y = years

  • M = months

  • D = days

Remarks

  • If the culture is not specified, the current user culture is used.

Example

Date.FromText("2010-02-19") equals Date,yyyy-MM-dd  
© 2018 Microsoft