I am having date which is in mm/yyyy format. I need to compare this date with today's date. I have converted today's date.
After converting I have got date in mm/dd/yyyy format..But I need to covert it into mm/yyyy format..So that I can compare this date into, date which I am getting..Any help please.
selecteddate=05/2019 //which is in mm/yyyy format
myDate= new Date().toLocaleDateString(); //which is in mm/dd/yyyy format( I need to convert this date into mm/yyyy format and need to compare with selecteddate)