hi
I have used below code for date format and it went well. but when im using backspace it is not clearing "-" this dash. how to make it work
$("#masterDataFeedDate_Id").on('input paste keyup', function() {
if ($(this).val().length === 4){
$(this).val($(this).val() + "-");
}
else if ($(this).val().length === 7){
$(this).val($(this).val() + "-");
}
});