postgresql query to get record before specific dat e code example Example: ilike for date postgres column::text LIKE '2011-01-%'