Date parsing for validation
working on parsing date