Converted the date from HTML to PHP