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 -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -