I need to validate a format(YYYY-MM-DD HH:mm:ss) for date and should not allow previous dates.
Below is my validation for date and time. where test function is not wo