diff --git a/src/components/MessageComponent.vue b/src/components/MessageComponent.vue
index d4e809f..419398f 100644
--- a/src/components/MessageComponent.vue
+++ b/src/components/MessageComponent.vue
@@ -1,4 +1,6 @@
diff --git a/src/utils.ts b/src/utils.ts
index 8e23921..8907b9c 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -6,6 +6,24 @@ export const sendNotification = (message : string, successful : Boolean) => {
position: 'top',
timeout: 2000,
color: successful ? "green" : "red",
- icon: successful ? "success" : "warning"
+ icon: successful ? "check" : "warning"
});
+}
+
+export const isToday = (date : Date) => {
+ const today = new Date();
+ return date.getFullYear() === today.getFullYear() &&
+ date.getMonth() === today.getMonth() &&
+ date.getDate() === today.getDate();
+}
+
+export const getDaysOffset = (date1: Date, date2: Date) => {
+ // Berechne die Differenz in Millisekunden
+ const diffInMillis = date2.getTime() - date1.getTime();
+
+ // Eine Konstante für die Anzahl der Millisekunden in einem Tag
+ const millisInDay = 1000 * 60 * 60 * 24;
+
+ // Berechne die Differenz in vollen Tagen und runde ab
+ return Math.floor(diffInMillis / millisInDay);
}
\ No newline at end of file