Can anyone tell how to sort a date and time if it is in Month date year time i.e for example May 23 2006 12:04 AM. Like that.PLease help me to solve this issue of sorting the date with Time.
@phpnoviceMay 26.2006 — #I presume you have more than two dates and these dates strings are stored in an array, yes? In which case, you can use a [B]sort function[/B] to provide a custom sort criteria for the array's [url=http://msdn.microsoft.com/library/en-us/script56/html/9bd8b54a-c838-4806-85c8-62eebe6bc48c.asp]sort()[/url] method. In your sort function, you can use the [B]Date.parse()[/B] method to convert that date string to a date object for numeric date comparisons.