search
top

Number of days between dates

One day I was just thinking about days spent by me on this earth, so I decided to make a script for the same. I am writing here the code, just make a new empty php file and copy and paste the script and execute it to find out the days between two dates. <h1>For finding days lived on earth</h1> <b>Select Date :</b> <form name="dob" action="<?php echo...
read more

List Date Difference

Some of you might have come across the requirement for displaying all the dates between give two dates, especially for drop down listing of dates. I have developed a sample code for getting all date ocurrences between give two dates. <?php $fromDate = "01/01/2009"; //format mm/dd/yyyy $toDate = "01/25/2010"; //format mm/dd/yyyy $dateMonthYearArr = array(); $fromDateTS...
read more

top