Hi,

Below line of code in my program is priting Date & Time in the format 11/3/11 4:33:13 PM IST , how can i print only the lines which are between spcific dates by using the above printed date format in JAVA.

System.out.println("Date & time: " + akarray.getModifiedTime());

how can i print only the lines which are between spcific dates by using the above printed date format in JAVA.

You need to write code that will find the lines with the specific dates. Start printing after finding the first date and stop when finding the last.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.