Fixed date issue

fixed date issue with validation