square-honey-48197
11/28/2022, 6:48 PMmm/dd/yyyy string matches my desired daydate via:
the startDate I'm passing in is just 11
TypeScript
getCustomDateStartDateInput()
.invoke('val')
.then((date) => {
cy.log('Desired Date:\t' + startDate);
console.log('Actual Start Date\t' + date);
console.log(String(date).split('/')[1]);
expect(String(date).split('/')[1]).to.equal(startDate);
});
For some reason the assertion in the command palette looks like this: