Java date sorting method?

I have an array of strings in ex format: '2010-05-04 11:26:46 +0530'. How to check if a specific date exists in an array> today?

thank

+3
source share
1 answer
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");

df.parse(datearray[i]).after(new Date()) 
+8
source

Source: https://habr.com/ru/post/1744454/


All Articles