Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2011, 11:53 PM
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display days between two dates

I have two variables $startDate and $endDate and I would like to display days in between the two variables. For exemple: $startDate=("09/05/2011"); $endDate=("13/06/2011");
and echo all days in between both dates in a manner to obtain something like this:
Day1 10/06/2011 // day/month/year
Day2 11/06/2011
Day3 12/06/2011
Any help will be appreciated.
Thank you in advance





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 dates - week days poyserr Excel VBA 1 March 24th, 2009 08:23 AM
display all dates within months sanjeev jha Classic ASP Basics 1 June 6th, 2008 12:46 PM
Need to query dates after 90 days old melkin SQL Language 9 October 30th, 2007 08:03 AM
Calculating number of days between multiple dates Vann Access 4 December 3rd, 2004 08:26 PM
How to calculate the work days beetwen two dates. andres_pm Javascript 1 October 7th, 2004 06:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.