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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dorababu MekaPosted Sep 24, 2012, 4:34 AM
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
}
}