I want to validate them so that MyDate should be between the Start Date and End Date using Javascript.
There can be various ways to do it. Simplest is to raise a JS method on any event like onclick or page submit, where you find the three controls, get the three dates and compare.
Sample:
function checkDateValues(startDateValue, endDateValue, myDateValue)
{
var sDate = new Date(startDateValue);
var eDate = new Date(endDateValue);
var mDate = new Date(myDateValue);
if(mDate > sDate && mDate < eDate)
{
return true;
}
return false;
}