Sorting By Date An Array Of Bean Having Date Member
i am having a bean class like public class ItemBean{ String item_id, item_title, image_url, link_url, description, publish_date, in_app_date, sub_section_id, type, dura
Solution 1:
You have to compare dates and not strings (publish_date). So in method compare() you parse the String date into a Date object (e.g. via SimpleDateFormat) and compare those two dates via Date.compareTo
Post a Comment for "Sorting By Date An Array Of Bean Having Date Member"