Count days until date

/ Published in: PHP
Save to your folder(s)

I made this script to count the days until a birthday, the birthdays are stored in mysql with the year intact YYYY-MM-DD, so this function strips the first 4 chars, and adds the current year, if the date has already passed it adds the next year and counts for that.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.