mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 02:31:18 +01:00
9 lines
220 B
TypeScript
9 lines
220 B
TypeScript
export const isToday = (date: Date) => {
|
|
const today = new Date();
|
|
return (
|
|
today.getDate() === date.getDate() &&
|
|
today.getMonth() === date.getMonth() &&
|
|
date.getFullYear() === date.getFullYear()
|
|
);
|
|
};
|