Overview

Class to parse dates to DateTime.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL

Class Methods


Parses a datetime string given a format string and a locale.

class method TryParse(aDateTime: String; aFormat: String; aLocale: Locale; out output: DateTime; aOptions: DateParserOptions := nil): Boolean
static Boolean TryParse(String aDateTime, String aFormat, Locale aLocale, out DateTime output, DateParserOptions aOptions = null)
static func TryParse(_ aDateTime: String, _ aFormat: String, _ aLocale: Locale, _ output: inout DateTime, _ aOptions: DateParserOptions = nil) -> Boolean
static Boolean TryParse(String aDateTime, String aFormat, Locale aLocale, __out DateTime output, DateParserOptions aOptions)
Shared Function TryParse(aDateTime As String, aFormat As String, aLocale As Locale, <OutAttribute> ByRef output As DateTime, aOptions As DateParserOptions = Null) As Boolean

Parameters:

  • aDateTime:
  • aFormat:
  • aLocale:
  • output:
  • aOptions:

Parses a datetime string given a format string and a locale.

class method TryParse(aDateTime: String; aFormat: String; out output: DateTime; aOptions: DateParserOptions := nil): Boolean
static Boolean TryParse(String aDateTime, String aFormat, out DateTime output, DateParserOptions aOptions = null)
static func TryParse(_ aDateTime: String, _ aFormat: String, _ output: inout DateTime, _ aOptions: DateParserOptions = nil) -> Boolean
static Boolean TryParse(String aDateTime, String aFormat, __out DateTime output, DateParserOptions aOptions)
Shared Function TryParse(aDateTime As String, aFormat As String, <OutAttribute> ByRef output As DateTime, aOptions As DateParserOptions = Null) As Boolean

Parameters:

  • aDateTime:
  • aFormat:
  • output:
  • aOptions:

Parses a datetime string given a the standard format string and a locale.

class method TryParse(aDateTime: String; aLocale: Locale; out output: DateTime; aOptions: DateParserOptions := nil): Boolean
static Boolean TryParse(String aDateTime, Locale aLocale, out DateTime output, DateParserOptions aOptions = null)
static func TryParse(_ aDateTime: String, _ aLocale: Locale, _ output: inout DateTime, _ aOptions: DateParserOptions = nil) -> Boolean
static Boolean TryParse(String aDateTime, Locale aLocale, __out DateTime output, DateParserOptions aOptions)
Shared Function TryParse(aDateTime As String, aLocale As Locale, <OutAttribute> ByRef output As DateTime, aOptions As DateParserOptions = Null) As Boolean

Parameters:

  • aDateTime:
  • aLocale:
  • output:
  • aOptions:

Parses a datetime string given the standard format string and a default locale.

class method TryParse(aDateTime: String; out output: DateTime; aOptions: DateParserOptions := nil): Boolean
static Boolean TryParse(String aDateTime, out DateTime output, DateParserOptions aOptions = null)
static func TryParse(_ aDateTime: String, _ output: inout DateTime, _ aOptions: DateParserOptions = nil) -> Boolean
static Boolean TryParse(String aDateTime, __out DateTime output, DateParserOptions aOptions)
Shared Function TryParse(aDateTime As String, <OutAttribute> ByRef output As DateTime, aOptions As DateParserOptions = Null) As Boolean

Parameters:

  • aDateTime:
  • output:
  • aOptions:

TryParseISO8601

class method TryParseISO8601(aDateTime: String; out output: DateTime): Boolean
static Boolean TryParseISO8601(String aDateTime, out DateTime output)
static func TryParseISO8601(_ aDateTime: String, _ output: inout DateTime) -> Boolean
static Boolean TryParseISO8601(String aDateTime, __out DateTime output)
Shared Function TryParseISO8601(aDateTime As String, <OutAttribute> ByRef output As DateTime) As Boolean

Parameters:

  • aDateTime:
  • output: