[PHP] Re: Friendly dates

2003-12-01 Thread Scott Fletcher
Something like this, but this is not perfect.. The mktime seem to work only for Unix/Linux and not work for Windows. --snip-- function dateDiff($input_date) { //MSG #1 - Parameter1 must be in this date format --> "mm/dd/" //MSG #2 - This script does not include fix for the leap year...

[PHP] Re: Friendly dates

2003-12-01 Thread Scott Fletcher
Perhap a date difference will help, PHP doesn't have this feature, date_diff() while C/C++ have this feature. So, there is a way, you can use the date() function and get the day difference. So, if you have one day difference, you use the if statement or switch statement to use the word 'Yesterday