@wsdot/geospatial-metadata
Version:
A library for parsing and converting Geospatial metadata XML
9 lines (8 loc) • 470 B
TypeScript
/**
* Parses a yyyyMMdd date string into a date object.
* @param {string} yyyyMMdd - Date string - Parts can optionally be separated by dashes or slashes.
* @param {string} [hhmmss] - Time string
* @returns {Date} Returns a date object equivalent to the input date and time strings.
* @throws {Error} Throws an error if yyyyMMdd is in an unexpected format.
*/
export declare function parseDate(this: any, yyyyMMdd: string, hhmmss?: string): Date | string;