mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 10:41:10 +01:00
✨Add calendar tile
This commit is contained in:
8
src/tools/isToday.ts
Normal file
8
src/tools/isToday.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const isToday = (date: Date) => {
|
||||
const today = new Date();
|
||||
return (
|
||||
today.getDate() === date.getDate() &&
|
||||
today.getMonth() === date.getMonth() &&
|
||||
date.getFullYear() === date.getFullYear()
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user