loulijun2021
2023-03-03 0aa79c7b9926e01f61de7c6514ea1deffe3bee7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const getYearMonthDay = (date) => {
  const year = date.getFullYear()
  const month = date.getMonth()
  const day = date.getDate()
 
  return { year, month, day }
}
const getDay = (year, month, day) => {
  return new Date(year, month, day)
}
 
export {
  getYearMonthDay,
  getDay
}