Grab the RSS feed

Calculate four weeks date from current date and time


Hi Friends,

I found one default function in PHP that is reduce our time to calculate the date an time for the weeeks and months and days.

Below I give the simple example to calculate 4 weeks date from current date.



$weekstocalculate[0]='4 Months'

$text=trim($weekstocalculate[0]);
$text1="now +".$text;

echo date("F jS, Y",($text1));
It gives the output like this
Month date,Year 
Ex:October,2010 

Please try it and give your feedback 

 
Real Time Web Analytics