I have an HTML file and it has a field to input the date and this html file is interacting with a JavaScript file.
So, what i want to do is as soon as i enter the date input it should get converted to the first date of next month.
for example: if I am providing the date input as 21/05/2020 (dd/mm/yyyy format) it should get converted to 01/06/2020 (dd/mm/yyyy format) i.e, first date of next month.
can anyone help with the JavaScript logic to do this?