public function week($field,$which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
        $conn = $this->connections[$which_connection];

        return $conn->SQLDate("W",$field);
    }
public function week($field,$which_connection='')
    {
        if ($which_connection == '') {
            $which_connection = $this->default_db;
        }
        $conn = $this->connections[$which_connection];

        return $conn->SQLDate("W",$field);
    }
public function week ( $ field , $ which_connection = '' ) { if ( $ which_connection == '' ) { $ which_connection = $ this -> default_db ; } $ conn = $ this -> connections [ $ which_connection ] ; return $ conn -> SQLDate ( "W" , $ field ) ; }
Get the week number from a datetime
@param $field A datetime expression
@param $which_connection see method close()
@return The SQL expression
Get the week number from a datetime