Friday, July 31, 2009

How do I increment next 90 days or 3 months in current date using PHP?

I want to develop PHP code, which displays the date coming next to 90 days and/or 3 months.





Please code it in PHP,








Thanks

How do I increment next 90 days or 3 months in current date using PHP?
strtotime('+90 days');


strtotime('+3 months');





That function returns a unix time-stamp, so you could do it like this, for example:





echo date('jS M Y', strtotime('+3 months'));





Adam @ http://www.talkphp.com/
Reply:Im not sure of the question. please be more specific
Reply:My husband says try www.w3schools.com


SP.


No comments:

Post a Comment