Stock: IsDateInPast
I just wrote this stock for an upcoming thing I'm about to release (I love the feeling when you're so close to releasing a big project you can taste it! :) ).
It accepts a single parameter, a date string formatted as YYYY-MM-DD, and compare it to the current server date. If the date is in the past, it returns true. Otherwise, it returns false (also returns false if the dates are identical). I haven't tested it yet, but it should work fine. Let me know if there's a problem with it. PHP Code:
|
Re: Stock: IsDateInPast
PHP Code:
PHP Code:
|
Re: Stock: IsDateInPast
Nice code, it looks clean and easy to implement. Thanks for sharing we have been working on an extended project that calculates time, cost, and too much more to get into.
|
| All times are GMT -4. The time now is 18:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.