Zum Hauptinhalt springen

DateTimeParser

Constructors

Constructor

new DateTimeParser(): DateTimeParser

Returns

DateTimeParser

Methods

tryParse()

static tryParse(input, maxYearBehind?, maxYearTo?): string

Parameters

input

string

maxYearBehind?

number

maxYearTo?

number

Returns

string


convertToFormattedDateString()

static convertToFormattedDateString(input, format): string

Parameters

input

string

format

string

Returns

string


tryParseWithFormat()

static tryParseWithFormat(input, currentFormat, maxYearBehind?, maxYearTo?): string

Parameters

input

string

currentFormat

string

maxYearBehind?

number

maxYearTo?

number

Returns

string