How to convert date into my required format using dayjs module – Javascript
I am reading a date from a locator through cypress the actual date is 11/04/2023 cy.get("#eff-date").invoke('text').then(()=>{ const edate = dayjs(text.split(':')[1].format('DD-MMM-YYYY')) }) What it is returning 04-Nov-2023 But it should be 11-Apr-2023