mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-30 11:56:22 +08:00
7 lines
173 B
JavaScript
7 lines
173 B
JavaScript
|
// @flow
|
||
|
|
||
|
export function isToday(inputDate: Date): boolean {
|
||
|
const todaysDate = new Date();
|
||
|
return inputDate.setHours(0, 0, 0, 0) == todaysDate.setHours(0, 0, 0, 0);
|
||
|
}
|