Search for dates
nik736 opened this issue · comments
Niklas Karoly commented
Hello,
I would like to search for dates.
include PgSearch::Model
pg_search_scope :search_by_date,
:against => [:pickup_date, :return_date],
:using => {
:tsearch => {:prefix => true}
}
The current format that is searchable is: YYYY-MM-DD. Is it possible to change this to DD.MM.YYYY?
Any help is appreciated. Thanks! :)