Get started

Companion

Functions

Link copied to clipboard

Parses a DateTimeComponents from input using the given format. Equivalent to calling DateTimeFormat.parse on format with input.

Link copied to clipboard

Parses a DateTimeComponents from input using the given format or returns null if the string does not match the pattern. Equivalent to calling DateTimeFormat.parseOrNull on format with input.