src/Webiny/AnalyticsDb/DateHelper.php
public static function rangeThisWeek()
    {
        $ts = strtotime(date('Y-m-d')) + 86400;
        do {
            $ts -= 86400;
            $startDate = date('N', $ts);
        } while ($startDate != '1');

        return [$ts, $ts + (86400 * 6)];
    }
public static function rangeThisWeek()
    {
        $ts = strtotime(date('Y-m-d')) + 86400;
        do {
            $ts -= 86400;
            $startDate = date('N', $ts);
        } while ($startDate != '1');

        return [$ts, $ts + (86400 * 6)];
    }
public static function rangeThisWeek ( ) { $ ts = strtotime ( date ( 'Y-m-d' ) ) + 86400 ; do { $ ts -= 86400 ; $ startDate = date ( 'N' , $ ts ) ; } while ( $ startDate != '1' ) ; return [ $ ts , $ ts + ( 86400 * 6 ) ] ; }
Returns a date range for the current week.

@return array
Returns a date range for the current week .