Log 2179

$currentDate = date(‘d/m/Y’);
$taskDate = #תאריך המשימה#;

function calculateDateDifference($current, $task) {
$currentArr = explode(‘/’, $current);
$taskArr = explode(‘/’, $task);

$currentTimestamp = mktime(0, 0, 0, (int)$currentArr[1], (int)$currentArr[0], (int)$currentArr[2]);
$taskTimestamp = mktime(0, 0, 0, (int)$taskArr[1], (int)$taskArr[0], (int)$taskArr[2]);

return abs(round(($currentTimestamp – $taskTimestamp) / (60 * 60 * 24)));
}

return calculateDateDifference($currentDate, $taskDate);

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare