Log 2303
11/12/2023 2023-12-11 10:38function calculateDateAfterFlush($flushDate, $daysAfterFlush) {
$dateParts = explode(‘/’, $flushDate);
$day = (int)$dateParts[0];
$month = (int)$dateParts[1];
$year = (int)$dateParts[2];
// Calculate the timestamp of the flush date
$flushTimestamp = mktime(0, 0, 0, $month, $day, $year);
// Calculate the timestamp of the date after flush
$afterFlushTimestamp = strtotime(“+$daysAfterFlush days”, $flushTimestamp);
// Format and return the date after flush
return date(‘d/m/Y’, $afterFlushTimestamp);
}
$flushDatePlaceholder = #שוטף#;
$daysAfterFlushPlaceholder = #ימים לאחר השוטף#;
// Replace placeholders with actual values from your code or input
$flushDateValue = ’10/12/2022′;
$daysAfterFlushValue= 7;
return calculateDateAfterFlush($flushDateValue, $daysAfterFlushValue);