0

I would just like to know how Date fields are searched.

In order to do this, I want to know in what format should I search.

Do I search datetime as a timestamp? as a string?

1

2 Answers 2

1

When using the range filters, Low Search will transform a given date for a date field to a UNIX timestamp, using strtotime(), unless an integer is given; then a timestamp is assumed.

Most dates in EE are stored as UNIX timestamps, which are accurate to the second. When you enter a date without a time, 00:00:00 is assumed as time (standard strtotime behaviour).

0

Low Search automatically detect the date field. You should search the date in the format of yyyy-mm-dd (like 2012-01-01).

1
  • So I don't need to specify the time? Jul 10, 2013 at 3:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.