Added handling to ensure that the date is in yyyymmdd format

Reviewer : Tiff Go (post commit)

Issue: GCP-9554