[jQuery] tableSorter, Dates
Can I just say "you're the man"?
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On
Behalf Of Christian Bach
Sent: Friday, July 14, 2006 6:05 AM
To: discuss@jquery.com
Subject: [jQuery] tableSorter, Dates
Hi!
First of all thanks for all the great feedback!
After thinking about date-formats the hole day (Boring my girlfriend and
later
on our dog) i have come to the conclusion that writing a generic all in one
date parser would be to costly for the tableSorter to remain efficient.
Allsow i will try to implement some kind of sorter-plugin for the parsing of
data types in the diffrent columns (Working in the way that John suggested:
Taken the first cell of every column). So this can easily be extended in the
future.
I decided to support two main formats, one being standard (Me being
European)
and one for our friends on the other side of the Atlantic.
1. YYYY-MM-DD and YY-MM-DD
2. MM/DD/YYYY and MM/DD/YY
The dates will be parsed to a internal format (YYYYMMDD) and will be sorted
with the existing numeric sorter function. Any format with a "short" year
ex.
1/10/06 will be parsed internally to 20060110.
As of sorting on time, it will basically function the same way.
1. AM / PM times
2. standard HH:MM / HH:MM:SS.
Is this enough?
Best regards
Christian
--
-------------------------
Christian Bach
Polyester HB
Wittstocksgatan 2
115 24 Stockholm
Tel: 08-6607350
Mob: 070-4439190
http://www.polyester.se
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/