note 51922 added to function.date
| From: | khuramyz at hotmail dot com | Date: | Fri, 15 Apr 2005 05:28:43 +0000 |
| Subject: | note 51922 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88041@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51922
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51922&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51922&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51922&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51922&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51922&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51922&report=yes
Search -- http://master.php.net/manage/user-notes.php