Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Table sorting i.r.t. date format
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Table sorting i.r.t. date format
#72892
Table sorting i.r.t. date format 11 Hours, 26 Minutes ago Karma: 0
Dear ARI-soft,

How to make data table correctly sortable?
Dates in Mysql are stored in "yyyy-mm-dd" format.
In site data table I want to present dates in "%d-%m-%y" format. But sorting by pushing the table header results not in date sorting but in string sorting.

What to do? Could you help me?

The SQL query in ARI Datables module is:

SELECT Date_format(`Datum`,'%d-%m-%y') as Datum2,`Repetitie/Concert`,`Neue Bach Ausgabe`,`Moeilijke stukken`,`Tractant`,`Locatie` FROM `Jaarkalender RBE` ORDER BY `Datum` ASC

Regards,

Ben Hillen
The administrator has disabled public write access.
 
Go to topPage: 1