Consider the following example given in php manual for DateTime
<?php $date = new DateTime('2000-01-20'); $date->sub(new DateInterval('P10D')); echo $date->format('Ym-d') . "\n"; ?>
'D' for a few days, what does the āPā mean in this formatting?
Shrinath Feb 08 '12 at 6:29 2012-02-08 06:29
source share