postgres sql query date greater than 30 days code example Example: ilike for date postgres column::text LIKE '2011-01-%'