public static function createDateRande($from, $amount, $dtFormat='Y-m-d')
    {
        $range = [ $from ];
        $curDt = $from;
        
        for($i=1; $i<$amount; $i++) {
            $curDt = \KsUtils\Dt::getNextDay($curDt, $dtFormat);
            $range[] = $curDt;
        }
        
        return $range;
    }
public static function createDateRande($from, $amount, $dtFormat='Y-m-d')
    {
        $range = [ $from ];
        $curDt = $from;
        
        for($i=1; $i<$amount; $i++) {
            $curDt = \KsUtils\Dt::getNextDay($curDt, $dtFormat);
            $range[] = $curDt;
        }
        
        return $range;
    }
public static function createDateRande ( $ from , $ amount , $ dtFormat = 'Y-m-d' ) { $ range = [ $ from ] ; $ curDt = $ from ; for ( $ i = 1 ; $ i < $ amount ; $ i ++ ) { $ curDt = \ KsUtils \ Dt :: getNextDay ( $ curDt , $ dtFormat ) ; $ range [ ] = $ curDt ; } return $ range ; }
Creates an array of consecutive dates
@param string $from Starting date
@param integer $amount Range's length
@param string $dtFormat Format of starting and resulting dates, default: Y-m-d
@return array List of dates
Creates an array of consecutive dates