教程 dayjs tutorial

As String

返回包含时间信息的 string 。

javascript
dayjs("2019-01-25").toString(); // 'Fri, 25 Jan 2019 02:00:00 GMT'