Use HTML5 date input when possible, fall back to strtotime() otherwise.