src/Common/Console/Seed/Base.php
protected function randomDate($sLow = null, $sHigh = null, $sFormat = 'Y-m-d')
    {
        $iLow  = $sLow ? strtotime($sLow) : strtotime('last year');
        $iHigh = $sHigh ? strtotime($sHigh) : strtotime('next year');
        return date($sFormat, rand($iLow, $iHigh));
    }
protected function randomDate($sLow = null, $sHigh = null, $sFormat = 'Y-m-d')
    {
        $iLow  = $sLow ? strtotime($sLow) : strtotime('last year');
        $iHigh = $sHigh ? strtotime($sHigh) : strtotime('next year');
        return date($sFormat, rand($iLow, $iHigh));
    }
protected function randomDate ( $ sLow = null , $ sHigh = null , $ sFormat = 'Y-m-d' ) { $ iLow = $ sLow ? strtotime ( $ sLow ) : strtotime ( 'last year' ) ; $ iHigh = $ sHigh ? strtotime ( $ sHigh ) : strtotime ( 'next year' ) ; return date ( $ sFormat , rand ( $ iLow , $ iHigh ) ) ; }
Return a random date, optionally restricted between bounds

@param string $sLow    The lowest possible date to return
@param string $sHigh   The highest possible date to return
@param string $sFormat The format to return the datetime value in

@return string
Return a random date optionally restricted between bounds