Log 1946

$dateToday = date(‘d/m/Y’);
$futureDate = #תאריך עתידי#;

$todayArr = explode(‘/’, $dateToday);
$futureArr = explode(‘/’, $futureDate);

$todayTimestamp = mktime(0, 0, 0, $todayArr[1], $todayArr[0], $todayArr[2]);
$futureTimestamp = mktime(0, 0, 0, $futureArr[1], $futureArr[0], $futureArr[2]);

$differenceDays = ($futureTimestamp – $todayTimestamp) / (60 * 60 * 24);

return ‘The difference in days between today and the future date is: ‘ . abs($differenceDays);

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