1: Often involves date conversion comparison: Copy code The code is as follows: < html> <br>function returnMaxDate(){ <br>var datevalue1 = document. getElementById("date1").value; <br>var datevalue2 = document.getElementById("date2").value; <br>if(datevalue1 > datevalue2){ <br>return datevalue1; <br>}else{ <br>return datevalue2; <br>} <br>} <br>