/** * Take a value and convert it to the specified date format. The value passed in must first be converted * to ISO 8601 date format so that date-fns can work validate and format the the date correctly. * * @param value The string that represents a date * @param options Specifies the options used to convert a date. defaultValue, if supplied, is used if the value specified is * not a valid date and must be a valid ISO 8601 date. dateFormat specifies the date format to be returned. Valid date formats * are defined at https://date-fns.org/v2.16.1/docs/format * * Date issues: https://stackoverflow.com/questions/7556591/is-the-javascript-date-object-always-one-day-off * date-fns issues: https://stackoverflow.com/questions/58561169/date-fns-how-do-i-format-to-utc * To avoid date-fns issues with iso8601 dates we filter them out using a regex */ export declare function extractDate(value: string, options?: { defaultValue?: string | null; dateFormat?: string; }): string | null;