I want to compare the date in my sql query and get the records for a specific date, but it is stored in timestamp format in postgres.
What kind of query could compare only date parts, since I want and skip the time part.
I want to compare the date in my sql query and get the records
Share
This Query will give you date like ‘2012/11/22’ which you can use for date comparison.
You can see more formats here :- CAST and CONVERT (Transact-SQL)