Closed stevevance closed 5 years ago
The alternative and successful way to use date intervals is to calculate the interval in PHP:
->where("issue_date", ">", date("Y-m-d", strtotime("90 days ago")))
@stevevance sorry for the delay... I have address this in 2.x with the Raw SQL clause:
->where("date", ">", new Raw("CURRENT_DATE - INTERVAL '90 days'"))
I don't know if this is a problem with PDO or with this library.
I am trying to use this WHERE clause:
but I get this exception:
Is it possible to use DATE/TIME variables in PostgreSQL like
CURRENT_DATE
?