note 51922 rejected from function.date by betz

From: Date: Fri, 15 Apr 2005 07:21:08 +0000
Subject: note 51922 rejected from function.date by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88045@lists.php.net to get a copy of this message
Note Submitter: khuramyz at hotmail dot com ---- i am having a problem with a date function. can anybody help me with the logic of a problem. the problem is. i am saving a date in database field in format. 2005-03-28 i.e. YYYY-MM-DD so now i have to make a function which calculates the difference of dates. one date is current date of my system. the other date is the one coming from datebase. i want the difference to be in number of days. for example the difference between 2005-03-28 and 2005-03-23 should be 5 days. can anyone help me with the logic of how to make such a function. Thankyou. Regards

« previous php.notes (#88045) next »