Source Code:
(back to article)
<?php $date = new DateTime(); date_isodate_set($date, 2022, 12, 31); echo $date->format('Y-m-d\TH:i:s\Z'); ?>
Result:
Report an issue