Reg date manipulation
| From: | Siva Prasath | Date: | Thu, 24 Apr 2003 05:57:49 +0000 |
| Subject: | Reg date manipulation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145118@lists.php.net to get a copy of this message | ||
We are facing a very simple problem and don't know how to solve it.
We have a web page which accepts a starting date and an ending date, on receiving these dates we
have to print all dates starting from the start date to the end date.
For example if users input is 01/01/2003 to 04/01/2003
we have to print 01/01/2003, 02/01/2003, 03/01/2003, 04/01/2003
we have tried to use dateadd but when we try to print the value using
strfdate function - we are always getting the value 01/01/1970 irrespective of the input value.
We also tried to add 1 directly to the date value but getting same 01/01/1970.
Any help will be appreciated.
Thanks in advance
Warm Regards,
Siva Prasath