Page 1 of 1
comparing date's to print the day
Posted: Sun Oct 21, 2007 6:37 pm
by invisibled
Hey there, I'm trying to write some code that subtracts today's date and the date the project was completed and display just the number of days. so it would be like "completed xx days ago". I think you use the mktime function but im not sure. Any help would be great thanks!
Posted: Sun Oct 21, 2007 7:24 pm
by Kieran Huggins
This was a topic a week or two ago, a quick search should turn up the entire thread... and maybe a few more!
Posted: Wed Oct 24, 2007 12:22 am
by invisibled
hmmm anything i found in the forums wasn't what i needed. i mean i guess i get the concept of how to do it. I just dont get exactly what php functions i need to use.
Posted: Wed Oct 24, 2007 12:23 pm
by feyd
Code Snippets has a thread created by printf (that's the username, not the function) which will tell you the difference in individual units.