Hi,
Gridview in javascript:
I have a gridview, which has two date fields, START_DATE and EXP_DATE. I
need to see that the EXP_DATE is not earlier than the START_DATE. Can
anyone of you advice me regarding this
Gridview in javascript:
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Dorababu MekaRank #457 · 5.5K reputationPosted Sep 24, 2012, 12:34 AM EDT
function compareDate(txtStartDate, txtEndDate) {
var startDate = document.getElementById( txtEndDate).value;
var EndDate= document.getElementById( txtStartDate).value;
var StartDate1=new Date(startDate);
var EndDate1=new Date( EndDate1);
if(StartDate1
// Do necessary
}
else
{
// Do necessary
}
}