Loading…

Read server time

```javascript WXAPI.commonDatetime() ``` ```json { "code": 0, "data": { "datetime": "2022-06-24 00:24:06", "week": 6, "month": 6, "hour": 0, "year": 2022, "day": 24, "timestamp": 1656001446503, "minute": 24, "second": 6 }, "msg": "success" } ``` + datetime server current time + week day of the week, this number is from Sunday to Saturday, 1-7 respectively, which is a little different from our usual days of the week + month is currently June + hour is currently 0 o'clock + year is currently 2022 + day The current date is the 24th + timestamp timestamp in milliseconds + minute is currently 24 minutes + second is currently 6 seconds