Hi,
I'm working with Joomla 2.5 and the latest version of hikahsop business.
The shop sells places on courses. I have a custom field for the start date and an optional custom field for the end date. On the listing page I would like to display them in date order. I have set the ordering up to use that field, however it's treating it as a text string, rather than as a date or datetime field, for exmaple, I have 3 events taking place on 03-04-2014, 05-05-2014 and 04-06-2014 tey will be displayed in the following order: (ordering set to ascending)
03-04-2014
04-06-2014
05-05-2014
As you would expect from a text string.
Is there a way that the date field type in custom fields can be made to behave as a date field, perhaps with a strtotime() and strfrtime() either site of the queries?
If I've missed something, please point me in the right direction.
Thanks