I have an String array of dates in the format ex:'2010-05-04 11:26:46 +0530'. How can I check whether a particular date in the array is > today?
thanks
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
df.parse(datearray[i]).after(new Date())
来源:https://stackoverflow.com/questions/2786379/java-date-sorting-method