Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

todays date plus 6 months

Status
Not open for further replies.

benrob82

Programmer
Jul 28, 2005
116
0
0
GB
Hi does anyone know how to get the result 6 months from today?

thanks
 
In what context? PHP calculation? Selecting records from a database?


If the former, something like:

print date('Y-m-d H:i', strtotime ('+6 months'));

will work.

If the latter, it will matter as to the database system you're using.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top