- This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Date Input Format for Date Filters
Tagged: date, datepicker
Hi,
Is it possible for the Search and Filter Pro plugin to filter on metadata date values using a dd/mm/yy format in the database instead of the yyyymmdd format?
I realized when I was trying to search/filter custom post types with a dd/mm/yy date field in my database, then the post wouldn’t show up because it didn’t recognize the dd/mm/yy format.
Thanks!
It isn’t, because of the way SQL saves dates in the format you request. Many custom field plugins now have the option to save in the 20170327 (today) type format specifically to support filtering. For example, ACF does, calling this format yymmdd. Many datepickers do the same.