Closed
Description
Possibly similar to #661 but originally posted here: r-dbi/RPostgres#362
library(RPostgres)
# use whatever Postgres connection you have
con <- postgresDefault()
dbplyr::sql_escape_date(con, Sys.Date())
# <SQL> '2021-12-02'
dbQuoteLiteral(con, Sys.Date())
# <SQL> '2021-12-02'::date