monkframes
Member
Hi,
Is there any way to filter a date field in a dropdown to show only the list of dates but not times ?, as the date element stores date and time together, I can?t find the way to do it, for example:
I have a list of bookings, some of them for the same day but at different times:
2014-05-02 10:00:00 ... ... ...
2014-05-02 11:30:00 ... ... ...
2014-05-02 23:15:00 ... ... ...
2014-05-05 09:00:00 ... ... ...
2015-05-07 12:00:00 ... ... ...
I need to have a dropdown filter to show:
2014-05-02
2014-05-05
2015-05-07
And if I choose 2014-05-02, the list must display only the bookings of that day ordered by time:
10:00:00 ... ... ...
11:30:00 ... ... ...
23:15:00 ... ... ...
Any clue ???
Thanks in advance.
Is there any way to filter a date field in a dropdown to show only the list of dates but not times ?, as the date element stores date and time together, I can?t find the way to do it, for example:
I have a list of bookings, some of them for the same day but at different times:
2014-05-02 10:00:00 ... ... ...
2014-05-02 11:30:00 ... ... ...
2014-05-02 23:15:00 ... ... ...
2014-05-05 09:00:00 ... ... ...
2015-05-07 12:00:00 ... ... ...
I need to have a dropdown filter to show:
2014-05-02
2014-05-05
2015-05-07
And if I choose 2014-05-02, the list must display only the bookings of that day ordered by time:
10:00:00 ... ... ...
11:30:00 ... ... ...
23:15:00 ... ... ...
Any clue ???
Thanks in advance.