Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fern Sanchez   on Nov 23 In Java Category.

  
Question Answered By: Fatih Farooq   on Nov 23

Simple string comaprisions wont work here. APR2004 will be sorted sequentially
MAR2004. Many such situations may occur. Best Solution will be coverting to date
format based. This could be done in more than one way. Dumb rule would be to get
a substring of first three positions as month and last four positions as year
and implement some sort logic.

Share: