Code: Select all
date();for example, i ant to declare the value of $startDate to the first week of the current year
thanks
Moderator: General Moderators
Code: Select all
date();Code: Select all
echo "01-01-".date("Y");Code: Select all
$x = strtotime("last Monday");
$Year = date("Y",$x);
$Month = date("m",$x);
$Day = date("d",$x);