// Get from String Date
date2 = new Date("<?php echo $_POST['eps_date'];?>");
date2.setDate(date2.getDate()+0);
date2.setMonth(date2.getMonth()+0);
date2.setFullYear(date2.getFullYear()+0);
// AddDay function (format MM-DD-YYY)
function AddDay(strDate,intNum)
{
sdate = new Date(strDate);
sdate.setDate(sdate.getDate()+intNum);
return sdate.getDate() + "-" + (sdate.getMonth()+1) + "-" + (sdate.getFullYear()+543);
}