I want to display data book but the problem is i got this error
 Notice: Only variables should be passed by reference in C:\xampp\htdocs\library-api\master.php on line <i>259</i></th></tr>
and here is my master.php
public function GetReportBook($id_book,$TanggalStart, $TanggalEnd)
{
    
    $sqlsrvquery = "
    EXEC [dbo].[GetReportBook] 
    @id_book = ?, 
    @TanggalStart = ?,
    @TanggalEnd = ?";
    $stmt = $this->conn->prepare($sqlsrvquery);
    $stmt->bindParam(1, $id_book, PDO::PARAM_STR);
    $stmt->bindParam(2, date('Ymd', strtotime($TanggalStart)), PDO::PARAM_STR);
    $stmt->bindParam(3, date('Ymd', strtotime($TanggalEnd)), PDO::PARAM_STR);
    $stmt->execute();
    if ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        $report_arr = array(
            "status" => true,
            "id_book" => $row['id_book'],
            "book_name" => $row['book_name'],
            //etc
        );
    } else {
        $report_arr = array(
            "status" => false,
            "message" => "Invalid Get Report Book!",
        );
    }
    print_r(json_encode($report_arr));
}
any solution of this? because i think the error came because of date time