i need to compare date.like input date is greater than current next month.using normal date in JavaScript.
//comparison_date is date which is current date + one month
// 14/07/2022 + One Month
input_date : 14/07/2022
comparison_date : 14/08/2022
if(input_date> comparison_date){
// false
}
input_date : 14/08/2022
comparison_date : 14/08/2022
if(input_date> comparison_date){
// false
}
input_date : 14/09/2022
comparison_date : 14/08/2022
if(input_date> comparison_date){
// true
}
input_date : 22/12/2022
comparison_date : 14/01/2023
if(input_date> comparison_date){
// false
}