Page 1 of 1

How to calculate the number of days between now and then ?

Posted: Sat Feb 28, 2004 3:07 am
by bluenote
Hi there,

it's only a small thing but it starts making me nervous :evil: :

I have the present date and a date in the future, i. e. 2004-03-31. The future date is the last time "my" users can input something into the db. So everytime a user runs the insert script, i want to print a notice like

You have 3 days left!

Has anyone an idea?

Posted: Sat Feb 28, 2004 6:12 am
by digital5
are you using mysql? I know mysql has really stong date and time features.