skip to Main Content

pass date values without quotes in postgresql

Is it possible to pass Date value without single quotes in select statements Query : select * from Schema_1.table_name where "Date" >=2019-01-01 and "Date"<=2020-12-01 Instead of select * from Schema_1.table_name where "Date" >='2019-01-01' and "Date"<='2020-12-01' Thanks in advance

VIEW QUESTION

Laravel date->format is not working at whereDate()

$period = new DatePeriod( new DateTime( '2024-03-20 00:00:00' ), new DateInterval('P1D'), new DateTime( '2024-03-28 23:59:59' ) ); $orders = OrderProduct::where ('brand','<>','NULL'); foreach ($period as $date){ $labels[] = $date->format('d-m-Y'); $searchDate = $date->format('Y-m-d'); **//This doesn't work** //$searchDate = '2024-03-26'; **//This works** $order…

VIEW QUESTION
Back To Top
Search