Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dannyyounes's avatar

Cypress test not display date format

Performing a Cypress test on a date

dayjs(15).format('Do') + " of every month";

So this should display 15th of every month but in the cypress test in display Invalid Date of every month. Outside the test it displays fine.

0 likes
2 replies
wingly's avatar
wingly
Best Answer
Level 29

Shouldn't it be dayjs().date(15).format('Do')

1 like

Please or to participate in this conversation.