add automatically generate end date value when select start date value and no end date value