@domonda/query-params
Version:
Useful but simple query params manipulator for React.
5 lines (4 loc) • 393 B
TypeScript
/** Strips the time from the passed date and converts it to UTC. It sets only the following: YEAR, MONTH and DATE (leaves the hours to 0 so that the date is not pushed in the past/feature). */
export declare function stripTime(date: Date): Date;
/** Parses the provided string formatted as an ISO date to a UTC date. (Strips time) */
export declare function parseISOToDate(str: string): Date;