openmrs-esm-core

O3 Framework / toDateObjectStrict

Function: toDateObjectStrict()

toDateObjectStrict(omrsDateString): Date | null

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:98

Converts the object to a date object if it is an OpenMRS ISO date time string. Otherwise returns null.

Parameters

omrsDateString

string

Returns

Date | null