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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -