Class: SimpleDateFormat

ix.text SimpleDateFormat


new SimpleDateFormat(format [, baseDate])

This is a java.text.SimpleDateFormat wrapper for Moment.js.

Parameters:
Name Type Argument Description
format string
baseDate Date <optional>

Methods


format( [input])

Formats the date with the specified format to it's string representation.

Parameters:
Name Type Argument Description
input Date <optional>
Returns:
Type
string

parse(input [, baseDate])

Parses the given String to Date, if possible.

Parameters:
Name Type Argument Description
input string

A String which should be parsed to date.

baseDate Date <optional>

The base date which sould be used for parsing.

Returns:
Type
Date | undefined