<?
date_default_timezone_set('Europe/Bucharest');
$day = date('w');
$week_monday = date('d-m-Y', strtotime('+'.(1-$day).' days'));
$week_tuesday = date('d-m-Y', strtotime('+'.(2-$day).' days'));
$week_wednesday = date('d-m-Y', strtotime('+'.(3-$day).' days'));
$week_thursday = date('d-m-Y', strtotime('+'.(4-$day).' days'));
$week_friday = date('d-m-Y', strtotime('+'.(5-$day).' days'));
$week_saturday = date('d-M-y', strtotime('+'.(6-$day).' days'));
The code work fine but I want the date
from $week_saturday
to be date('d-m-Y'
not date('d-M-y'
. If I put the same as the other on $week_saturday
, the page does not load. Anyone have a clue about what is going on? Thank you very much. Best regards, Bogdan.