this was mine third school assignment
Write a JavaScript function that compares two dates. Call this function compare_date () and give this function two input parameters. Take off the code below and make sure the window.alert () returns a message or date one is greater or less than 2 date or perhaps date 1 equals 2 date
i got something like this
var d1 = new Date(2017, 0, 2); // 2 januari 2017
var d2 = new Date(2017, 0, 1); // 1 januari 2017
window.alert(compare_date(d1,d2));
function compare_date(date1,date2){
}