Image

Imagesventhelost wrote in Imagephp 😦busy

Adding to a date

I've tried looking in PHP and MySQL docs for this, and just regular google searches, and I'm coming up nil. (Despite being fairly sure I found this the other day.)

I have a date (YYYY-MM-DD), a length, and a length type (day, month, or year). I want to add the length to the date to get a new date. How do I do this?

*staples a note that says "Bookmark" to her forehead