• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2306
  • Last Modified:

PHP get current date and add 10 days to it

I need a simple php script that will get the current date, add 10 days to it, and then print it out in the format:

Day (Ex. Tuesday), MM/DD/YYYY

This is relatively simple but I don't know what to do if the current date is Oct 26 and not print out something dumb like Oct 36

Thanks in advance
0
Doomtomb
Asked:
Doomtomb
  • 2
  • 2
1 Solution
 
hieloCommented:
echo date('m/d/Y',strtotime("+10 days"));
0
 
DoomtombAuthor Commented:
Didn't know it was that easy! Thanks for the fast response.
0
 
jarospiritCommented:
small modification

      echo date('l, m/d/Y',strtotime("+10 days"));
0
 
DoomtombAuthor Commented:
:X I already assigned the points >_<

but thanks for getting me the exact code for what I asked :) Attention to detail.
0
 
hieloCommented:
you are welcome.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now