Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

14
  • He should be able to sort the date strings without the need to create a Date object, as they can easily be made a sortable format. Commented Feb 24, 2014 at 6:59
  • 1
    +1. Indeed if one would use sortable date-time format like ISO8601 (YYYY-MM-DD) code would be simple. Commented Feb 24, 2014 at 6:59
  • 1
    @Xotic750 - DD-MM-YYYY is not sortable as text. Commented Feb 24, 2014 at 7:00
  • Master you deserve it +1 Commented Feb 24, 2014 at 7:18
  • 1
    @Xotic750 OK, updated the answer if there are no mixing of zero padded dates and non-zero padded dates. Commented Feb 24, 2014 at 8:23