Need help with getting the current date in Mon-DD-YYY format using JavaScript. I want to input today's date without the time into a date picker field.
My current code is giving errors, below is what I have:
Page.prototype.clickOnsessionDate = async function () {
const request = await this.findByXpath(clickOnsessionDate);
await this.write(reques, Date());
await this.driver.sleep(5000);
};