$dateFormat = new DateTime(); // this will return current date echo $stringDate = $date->format(DATE_ATOM); //output: 2020-03-08T12:54:56+01:00