It should be in this format: DateTime(1900,1,1,1,1,1)
So we create a function to send it to csp page in same format
function formatCESDate(strDate)
{
var mm,dd,yy,newDate,cesDate
if ((strDate !=null) && (strDate != ""

)
{
newDate = new Date(strDate)
mm = newDate.getMonth()+1;
dd = newDate.getDate();
yy = newDate.getFullYear();
cesDate = "DateTime("+yy+","+mm+","+dd+",1,1,1)"
}
else
cesDate ="DateTime(1,1,1,1,1,1)"
return cesDate
}
Hope that helps.
Dee