<?php date_default_timezone_set('Europe/Warsaw'); $date1 = '2016-03-01'; $date2 = '2017-03-01'; $datePay1 = new DateTime($date1); $datePay2 = new DateTime($date2); echo 'datePay1: ' . $datePay1->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d H:i:s') . "\ndatePay2: " . $datePay2->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d H:i:s');
You have javascript disabled. You will not be able to edit any code.