Employee Validation

  • + 0 comments

    Use this to pass failed tests because of wrong date

    !(formState.joiningDate && new Date(formState.joiningDate).getFullYear() < new Date(currentDate).getFullYear());