Create daterange array of missing dates

[code lang=”php”] //fromDate 2014-01-22 //toDate 2014-02-20 //$arr Array ( [0] => Array ( [ISO_DATE] => 2014-02-18 [DAY_SUM_AMOUNT] => 3000 [DAY_SUM_VOLUME] => 2 [CONVERSION_PCT] => 100 ) [1] => Array ( [ISO_DATE] => 2014-02-19 [DAY_SUM_AMOUNT] => 4000 [DAY_SUM_VOLUME] => 1 [CONVERSION_PCT] => 100 ) ) //codetime function createDateRangeArray($strDateFrom,$strDateTo) { $aryRange=array(); $iDateFrom=mktime(1,0,0,substr($strDateFrom,5,2), Read more…

By Andrew Odendaal, ago