From cdd6551b190b981b807a3b95e9635c559ccc769d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 19 五月 2025 09:45:07 +0800
Subject: [PATCH] git ch
---
company/src/utils/util.js | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/company/src/utils/util.js b/company/src/utils/util.js
index 779f5a3..2cbb86d 100644
--- a/company/src/utils/util.js
+++ b/company/src/utils/util.js
@@ -75,3 +75,24 @@
let day = currentDate.getDate(); // 鑾峰彇褰撳墠鏃ユ湡
return `${year}-${month}-${day}`
}
+
+// 瀵规瘮鏃ユ湡
+export function compareDates(date1, date2) {
+ if (new Date(date1).getTime() > new Date(date2).getTime()) {
+ return 1
+ } else if (new Date(date1).getTime() < new Date(date2).getTime()) {
+ return 2
+ } else {
+ return 3
+ }
+}
+
+// 鑾峰彇鏄庡ぉ鐨勬棩鏈�
+export function getTomorrow() {
+ var today = new Date();
+ today.setDate(today.getDate() + 1);
+ var year = today.getFullYear();
+ var month = today.getMonth() + 1;
+ var day = today.getDate();
+ return year + "-" + month + "-" + day;
+}
--
Gitblit v1.9.3