how many days left
Posted: Fri Dec 22, 2006 6:16 am
Hello,
I've done all functions in my program, except for one:
I want my members to see how many days they have left to use my program features.
I think i need to set upgrade finish time and insert into MySQL db. Then every time user logs in, time between now and upgrade end is calculated and displayed to the member.
Now what I want to know is how to set destination time and how to calculate how much time has been left till end. I want to display only days and set time only with year, month and day. So hours, seconds and minutes won't be needed.
Thanks for any suggestions.
I've done all functions in my program, except for one:
I want my members to see how many days they have left to use my program features.
I think i need to set upgrade finish time and insert into MySQL db. Then every time user logs in, time between now and upgrade end is calculated and displayed to the member.
Now what I want to know is how to set destination time and how to calculate how much time has been left till end. I want to display only days and set time only with year, month and day. So hours, seconds and minutes won't be needed.
Thanks for any suggestions.