mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-21 05:56:59 +01:00
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
export const isToday = (date: Date) => {
|
|
const today = new Date();
|
|
return (
|
|
today.getDate() === date.getDate() &&
|
|
today.getMonth() === date.getMonth() &&
|
|
today.getFullYear() === date.getFullYear()
|
|
);
|
|
};
|