var startDate = "02/01/2013";
var endDate = "02/01/2012";
var stDate = startDate.split("/")
var enDate = endDate.split("/")
var stdate = stDate[1] //date
var stmnth = stDate[0]-1 //month
var stYr = stDate[2] //year
var endate = enDate[1] //date
var enmnth = enDate[0]-1 //month
var enyr = enDate[2] //year
var strtDate = new Date();
var endDate = new Date();
strtDate.setFullYear(styr,stmnth,stdate);
endDate.setFullYear(enyr, enmnth, endate)
if(strtDate>endDate){
alert("Start date is greater than end date.")
}