updated validation patterns for time
created parseDate method