Adding ability to parse the date from $date.