In PHP date function for before 2 months -


i need date functions. how find before 2 months date (using date() function) particular date or current date.

use this

 echo date("y/m/d",strtotime("-2 months")); 

http://codepad.viper-7.com/z1his7

example

2013/feb/20


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -