DateTime issue with PHP - Storing Specific Date -


i'd able store following data inside variable: 'current year-current month-10' (so i.e. 2013-9-10)

currently, i'm using: echo date("y-m-d");

but (as expected) displays current day, not 10 need to.

any great.

you need do:

echo date("y-m-10"); 

if want next month:

echo date('y-m-10', strtotime('next month')); 

Comments