andymike08 Posted July 18, 2008 Share Posted July 18, 2008 Hey Guys, I'm writing an XML file and I'd need print a range of dates between a start and end date (mm/dd/yyyy format) from the database. Here is an example of the formatting I'd like to end up with for the dates in between the start and end date. Can anyone point me in the right direction to figuring out how accomplish this? Thank you for any help you can give me with this. [b]Example:[/b]<date>."$dateRange."</date> <date>."$dateRange."</date> <date>."$dateRange."</date> <date>."$dateRange."</date> Link to comment https://forums.phpfreaks.com/topic/115337-fill-dates-between-start-and-end-dates/ Share on other sites More sharing options...
ratcateme Posted July 18, 2008 Share Posted July 18, 2008 check out the date function you could have a while loop where you add 1 day to a timestamp the print it with date() Scott. Link to comment https://forums.phpfreaks.com/topic/115337-fill-dates-between-start-and-end-dates/#findComment-592977 Share on other sites More sharing options...
andymike08 Posted July 18, 2008 Author Share Posted July 18, 2008 Thanks ratcateme! You helped me figure it out! Link to comment https://forums.phpfreaks.com/topic/115337-fill-dates-between-start-and-end-dates/#findComment-592998 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.