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 2 Weeks, 6 Days 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.
 
#72900
Re:Table sorting i.r.t. date format 2 Weeks, 5 Days ago Karma: 764
Hello,

What table widget is used? Do you use server side pagination or client side?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#72903
Re:Table sorting i.r.t. date format 2 Weeks, 5 Days ago Karma: 0
I added two images
The administrator has disabled public write access.
 
#72904
Re:Table sorting i.r.t. date format 2 Weeks, 5 Days ago Karma: 0
Now two images in ZIP
File Attachment:
File Name: Two_screenshots.zip
File Size: 584557
The administrator has disabled public write access.
 
#72908
Re:Table sorting i.r.t. date format 2 Weeks, 3 Days ago Karma: 764
Open module settings page and navigate to "Choose table type -> ARI Data Table -> Columns settings" parameters section. Inter 0 in "Column index" and select "Date" in "Sorting type" dropdown:



Regards,
ARI Soft
The administrator has disabled public write access.
 
#72921
Re:Table sorting i.r.t. date format 1 Week, 3 Days ago Karma: 0
This works.

Thank you.
The administrator has disabled public write access.
 
Go to topPage: 1