繁體中文
外觀
返回一個包含日期屬性的物件。
TIP
此功能需要使用 ToObject 外掛程式。
dayjs.extend(toObject); dayjs('2019-01-25').toObject(); /* { years: 2019, months: 0, date: 25, hours: 0, minutes: 0, seconds: 0, milliseconds: 0 } */