How to display after 4 week date from now?I want to pass an argument.
Posted
by vinothkumar
on Stack Overflow
See other posts from Stack Overflow
or by vinothkumar
Published on 2010-06-11T15:10:38Z
Indexed on
2010/06/11
15:12 UTC
Read the original article
Hit count: 169
php
echo date( "F jS, Y" , strtotime("now +3 weeks") ); It gives the result as July 2nd, 2010 . Fine.Now I want to pass the argument like this.
The original print_r($originalamount) give the result like this Array ( [0] => 4 Months [1] => 3500 ) My code $text=trim($originalamount[0]); $text1="now +".$text;
echo date( "F jS, Y" , strtotime($text1)) ; The out put come like this December 31st, 1969
I dont know why?
© Stack Overflow or respective owner