Log 4646

$date1 = str_replace(‘/’, ‘-‘, #זכאי לקצבה מתאריך#);
$date2 = str_replace(‘/’, ‘-‘, #תאריך פקיעת תוקף הקצבה#);

$diff = strtotime($date2) – strtotime($date1);

$years = floor($diff / (365 * 60 * 60 * 24));
$months = floor(($diff – $years * 365 * 60 * 60 * 24) / (30*60*60*24));
$days = floor(($diff – $years * 365 * 60 * 60*24 – $months*30*60*60*24)/ (60*60*24));

return “$years שנים, $months חודשים, $days ימים”;

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