I am retrieving value from my notepad(database) like this
strLine = br.readLine().trim();
if ((strLine.length()!=0) && (strLine.charAt(0)!='#')) {
String[] teachers = strLine.split("\\s+");
Interviews interview = new Interviews();
interview.setTime(teachers[4]+" "+ teachers[5]);
at this point my timevalue is ( given be debugger)
"2011-9-5 0:00"
I want this Time to be compare with some other Time
But when i try to parse these values in a date format
SimpleDateFormat df=new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
Date d1=df.parse(interviewList.get(0).getTime());
It gives me error
java.text.ParseException: Unparseable date: "2011-9-5 0:00"
This is the format i have in my Notepad (Database) 2011-9-5 0:00
How can i compare this value as a Time with some other Time
Thanks