public static function getDatesFromRange($sStartDate, $sEndDate) {

		// Start the variable off with the start date
		$aDays[] = $sStartDate;

		// Set a 'temp' variable, sCurrentDate, with
		// the start date - before beginning the loop
		$sCurrentDate = $sStartDate;

		// While the current date is less than the end date
		while($sCurrentDate < $sEndDate){
			// Add a day to the current date
			$sCurrentDate = date("Y-m-d", strtotime("+1 day", strtotime($sCurrentDate)));

			// Add this new day to the aDays array
			$aDays[] = $sCurrentDate;
		}

		// Once the loop has finished, return the
		// array of days.
		return $aDays;

	}
public static function getDatesFromRange($sStartDate, $sEndDate) {

		// Start the variable off with the start date
		$aDays[] = $sStartDate;

		// Set a 'temp' variable, sCurrentDate, with
		// the start date - before beginning the loop
		$sCurrentDate = $sStartDate;

		// While the current date is less than the end date
		while($sCurrentDate < $sEndDate){
			// Add a day to the current date
			$sCurrentDate = date("Y-m-d", strtotime("+1 day", strtotime($sCurrentDate)));

			// Add this new day to the aDays array
			$aDays[] = $sCurrentDate;
		}

		// Once the loop has finished, return the
		// array of days.
		return $aDays;

	}
public static function getDatesFromRange ( $ sStartDate , $ sEndDate ) { // Start the variable off with the start date
 $ aDays [ ] = $ sStartDate ; // Set a 'temp' variable, sCurrentDate, with
 // the start date - before beginning the loop
 $ sCurrentDate = $ sStartDate ; // While the current date is less than the end date
 while ( $ sCurrentDate < $ sEndDate ) { // Add a day to the current date
 $ sCurrentDate = date ( "Y-m-d" , strtotime ( "+1 day" , strtotime ( $ sCurrentDate ) ) ) ; // Add this new day to the aDays array
 $ aDays [ ] = $ sCurrentDate ; } // Once the loop has finished, return the
 // array of days.
 return $ aDays ; }
Returns list of dates based on date range

@param  string	Start Date
@param  string	End Date
@return array
Returns list of dates based on date range