pg_search icon indicating copy to clipboard operation
pg_search copied to clipboard

Search for dates

Open nik736 opened this issue 4 years ago • 0 comments

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! :)

nik736 avatar Jun 15 '21 08:06 nik736