You'll need to use a little more processing to change the AM/PM into a
military system.
Something to the effect of:
function DateTimeOrderFormat (dt)
{
hr = dt.substr(14,2);
if(hr == "12"){hr = "00";}
if (dt.substr(11,2) == "PM") {hr = val(hr) + 12;}
return dt.substr(6,4)+dt.substr(0,2)+dt.substr(3,2)+hr+
bb.substr(14,2);
}
- Matt Small
-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 8:51 AM
To: CF-Community
Subject: Re: Javascript date sorting
G wrote:
>
> No need to include A's and P's once yer in military time....your sorting
> would then be based on straight 00-24.
But I don't have it in 24 hour time. I have a piece of HTML that I extract
strings from and the strings are formatted like "05/17/2005 01:33 AM".
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:157864
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54