Problem:
The user would like to filter orders by the day. Display the orders for a selected day.
Solution:
Toolset stores the dates and times as a number, it is the timestamp of the date or time. It is the date/time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
The view's datepicker will provide the day, at 00:00:00, configure the filter to look for a value that is greater than the provided filter value(from URL param). We'll still need to look if the posts are lower than the next day(22/12/2022 00:00:00).
Unfortunately, this will need some custom code to calculate it. Please check this similar thread https://toolset.com/forums/topic/between-dates/#post-1537199
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9:00 – 13:00 |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - | 14:00 – 18:00 |
Supporter timezone: Africa/Casablanca (GMT+01:00)
This topic contains 4 replies, has 2 voices.
Last updated by 3 years, 7 months ago.
Assisted by: Jamal.