@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
13 lines • 537 B
TypeScript
/**
* Gets a Date instance without time (hours, minutes, seconds and milliseconds)
* @param date{*=}
* @return {Date|null}
* @example
* // How to get date without time e.g. hours, minutes, seconds and milliseconds?
* const dateWithTime = new Date();
* console.log(dateWithTime.getMilliseconds()); // => {number}
* const dateWithoutTime = getPureDate(dateWithTime);
* console.log(dateWithoutTime.getMilliseconds()); // => 0
*/
export function getPureDate(date?: any | undefined): Date | null;
//# sourceMappingURL=index.d.ts.map