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

Time.FromText

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

About

Returns a Time value from a set of date formats.

Time.FromText(time as nullable text, optional culture as nullable text) as nullable date  

Arguments

ArgumentDescription
timeThe text value representing the time.
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.

Time formats

  • hh:mm

  • hh:mm:ss

  • hh:mm:ss.nnnnnnn

Terms

  • h = hours

  • m = minutes

  • s = seconds

  • n = fractional seconds

Examples

Time.FromText("12:34:12") equals Time,hh:mm:ss  
Time.FromText("12:34:12.1254425") equals hh:mm:ss.nnnnnnn  
© 2018 Microsoft