Java Date sorting method?
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 i开发者_如何学Gos > today?
thanks
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
df.parse(datearray[i]).after(new Date())
精彩评论