Hello, tell me, is there any smart function in PHP that would accept the string " 29 dec 2016 " as the base date and determine that the string " 18 jan " is already 2017?
This does not work as I need:
$date1 = strtotime('29 dec 2016'); $date2 = strtotime('18 jan', $date1); echo date("Ymd H:i:s", $date2); // 2016-01-18 00:00:00
но это же надо писать.... really. to think more, the horror is the same)) - Alexey Shimansky