mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-03 13:13:13 +08:00
8 lines
197 B
TypeScript
8 lines
197 B
TypeScript
export function getCurrentDate() {
|
|
const date = new Date()
|
|
const day = date.getDate()
|
|
const month = date.getMonth() + 1
|
|
const year = date.getFullYear()
|
|
return `${year}-${month}-${day}`
|
|
}
|