tags:

views:

25

answers:

2

if i have a date such as 10/10/10 how do i display (in date format) 2 weeks after that? i think it has to do with strtotime but i dont know how to write it. im looking at the php.net site and cant figure it out.thnx

+3  A: 

Try this

date('y/m/d', strtotime('+2 weeks', strtotime('10/10/10')));
Mark
+1  A: 

I'm not 100% what you need, but we'll give it a try:

$defaultTime = strtotime('+2 week',strtotime('10/10/10'));
nute
Mark's answer is more complete.
nute