Esempio n. 1
0
            $optionRevValue = $option['option_value'];
            $optionValueDateTimeArr = explode(" ", $optionRevValue);
            ////to break string into Array////
            $optionValueDateNoTime = array_shift($optionValueDateTimeArr);
            ////to fetch First Element from array////
            $optionValueDateArr = explode("-", $optionValueDateNoTime);
            ////break string into array////
            $revArr = array_reverse($optionValueDateArr);
            //// to reverse the array ////
            //////To check If date is Modified and SET it to Modified Date If True//////
        }
        /////////////////////////////End To Fetch just the date in DD-MM-YYYY from YYYY-MM-DD HH:MM:SS///////////////////////////
    }
}
if (dateIfModified($orderId)) {
    $revArr = explode("-", dateIfModified($orderId));
}
switch ($revArr[1]) {
    case 1:
        $revArr[1] = "Jan";
        break;
    case 2:
        $revArr[1] = "Feb";
        break;
    case 3:
        $revArr[1] = "March";
        break;
    case 4:
        $revArr[1] = "April";
        break;
    case 5:
Esempio n. 2
0
         $optionRevValue = $option['option_value'];
         $optionValueDateTimeArr = explode(" ", $optionRevValue);
         ////to break string into Array////
         $optionValueDateNoTime = array_shift($optionValueDateTimeArr);
         ////to fetch First Element from array////
         $optionValueDateArr = explode("-", $optionValueDateNoTime);
         ////break string into array////
         $revArr = array_reverse($optionValueDateArr);
         //// to reverse the array ////
         ////////////////////////End To Fetch just the date in DD-MM-YYYY from YYYY-MM-DD HH:MM:SS/////////////////////
     }
     if (stristr($optionTitle, "Shipping Type") == TRUE) {
         $customShippingMethod = $option['value'];
     }
 }
 $modifiedDOD = dateIfModified($orderId);
 //////To check If date is Modified and SET it to Modified Date If True//////
 if ($modifiedDOD) {
     $revArr = explode("-", $modifiedDOD);
 }
 switch ($revArr[1]) {
     /////To Display Month's Name Instead Of Number//////
     case 1:
         $revArr[1] = "Jan";
         break;
     case 2:
         $revArr[1] = "Feb";
         break;
     case 3:
         $revArr[1] = "March";
         break;