“statusChangedDate”));
echo $regDate . “\n”;
$XDay = substr($regDate, 5, 1);
if ($XDay == ‘,’) {
$xDay = ‘0’ . substr($regDate, 4, 1);
} else {
$xDay = substr($regDate, 4, 2);
}
$xMonth = substr($regDate, 0, 3);
$xxYear =substr($regDate, 7, 1);
if ($xxYear == ‘ ‘ ) {
$xYear = substr($regDate, 8, 4);
} else {
$xYear = substr($regDate, 7, 4);
}
// echo $xMonth . ‘ ‘ . $xDay . ‘ ‘ . $xYear . “\n”;
switch ($xMonth) {
case ‘Jan’:
// echo “Jan”;
$xMonthDate = ’01’;
break;
case ‘Feb’:
// echo “Feb”;
$xMonthDate = ’02’;
break;
case ‘Mar’:
// echo “Mar”;
$xMonthDate = ’03’;
break;
case ‘Apr’:
// echo “Apr”;
$xMonthDate = ’04’;
break;
case ‘May’:
// echo “May”;
$xMonthDate = ’05’;
break;
case ‘Jun’:
// echo “Jun”;
$xMonthDate = ’06’;
break;
case ‘Jul’:
// echo “Jul”;
$xMonthDate = ’07’;
break;
case ‘Aug’:
// echo “Aug”;
$xMonthDate = ’08’;
break;
case ‘Sep’:
// echo “Sep”;
$xMonthDate = ’09’;
break;
case ‘Oct’:
// echo “Oct”;
$xMonthDate = ’10’;
break;
case ‘Nov’:
// echo “Nov”;
$xMonthDate = ’11’;
break;
case ‘Dec’:
// echo “Dec”;
$xMonthDate = ’12’;
break;
}
// echo “\n” . $xMonthDate . “\n”;
$beginDate2 = $xMonthDate . ‘/’ . $xDay .’/’ . $xYear;
// echo “\n” . $beginDate2 . “\n”;
$today = time();
$email = mm_member_data(array(“name”=>”email”));
$FullName = mm_member_data(array(“name”=>”firstName”)).’ ‘.mm_member_data(array(“name”=>”lastName”));
$day = strftime(“%d”,$today);
$month = strftime(“%m”,$today);
$custNum = ‘TFH’.$xYear.mm_member_data(array(“name”=>”Id”));
// $prodID = mm_member_data(array(“name”=>”productId”));
// echo $prodID;
$month = $xMonth;
$year = strftime(“%y”,$today);
$endyear = $year + 2;
$endyear = $xYear + 2;
$enddate = $xMonthDate.”/”.$xDay.”/”.$endyear;
$begindate = $beginDate2;
// $begindate = strftime(“%x”,$today);
/*
echo $begindate;
echo “\n”;
echo $enddate;
echo “\n”;
*/
?>
Certificate approved for: