skip to main | skip to sidebar

Your Computer is Not a Magic Box.

A computer is a tool, like a hammer, just don't use your hammer on your computer.

Sunday, April 8, 2007

PHP Add Date

To add 7 days to today's date in PHP do this,

$somevariable = mktime(0, 0, 0, date("m") , date("d")+7, date("Y"));
$datevariable = date('Y-m-d',
$somevariable)

*Change what is in bold to suit your needs

Posted by notamagicbox at 12:11 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
Add to Technorati Favorites

Blog Archive

  • ▼  2007 (21)
    • ▼  April (12)
      • What is the Govenor of Califorinia Smoking?
      • Boom Shalack Lack Boom
      • if you ever felt like everyone was against you, re...
      • It should have been more better handled than that.
      • CBS news report similar to CSI Miami episode
      • Buzzillions.com - Search for what you want by revi...
      • Review of an Ipod Speaker System for your office
      • Digg Traffic v/s Google Traffic - A Chitika Analys...
      • Don't want to forget this code that should output ...
      • PHP Dynamic Google Base Shipping Costs based on r...
      • PHP Add Date
      • Ipod use while driving might be as bad as cellphon...
    • ►  March (9)

About Me

notamagicbox
View my complete profile