dayjs().month() is wrong

Created on 29 Aug 2018  路  3Comments  路  Source: iamkun/dayjs

current time is '2018-08-29' but i use dayjs().month() it return 7 not 8 ? why

Most helpful comment

In javascript, month starts from 0;

All 3 comments

In javascript, month starts from 0;

thank you

@iamkun This issue can be closed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fes300 picture fes300  路  5Comments

lyz810 picture lyz810  路  4Comments

Sunrise1970 picture Sunrise1970  路  4Comments

ljmerza picture ljmerza  路  3Comments

Newbie012 picture Newbie012  路  4Comments