a datefrom PHP function

while coding for blogmatch today, I wrote a simple function. it returns the date that’s N days from a date you specify. For example, if you provide 2004/03/01 as the input date, it should return 2004/02/29 if you want to find out the date right before 2004/03/01.

The function is pretty straight forward and handy. You provide a date with its month, day and year and how many days before or after that date. It will return an array with keys: year, month and day. read more about it here or you can get the complete source code plus examples here.


2 Comments Leave a Comment

Bubs [ Quote ]

Cool function… maybe when I get settled in with school I can get back to work on my PHP knowledge lol

Btw - I’ve started my Computer Science curriculum as of Monday… we’re learning C++ at the moment ;)

June 10th, 2004 at 1:23 pm
debby [ Quote ]

hello, sorry little english , i’m sicily, your bog very cute ^_^
I try pen friends, I go to you?

June 11th, 2004 at 5:47 am

Leave a Comment Name, email and comment are required.
Email will never be displayed.

Leave a Comment
  1. :biggrin: :blank: :blush: :bored: :confused: :cool: :down: :evil: :frown: :grin: :grr: :laidback: :left: :mad: :right: :sad: :secret: :shock: :smile: :stress: :tongue: :up: :wink: :yawn: :cute: :dead: :film: :floppy: :glasses: :grumpy: :headphones: :heart: :lightbulb: :ouch: :tv: :upsidedown: :vodka: :yell: :yuck: :yummy: