reusable library

Validating the date