openmrs-esm-core

O3 Framework / toDateObjectStrict

Function: toDateObjectStrict()

toDateObjectStrict(omrsDateString): null | Date

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

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

Parameters

omrsDateString

string

Returns

null | Date