That is unfair that java will close the methods of Date in next versions! yesterday I have wrote a code that parse a Data value from string and now how could I use that calendar for getting seconds, hours ? This is my code
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd HH:mm:ss");
Date curDay = sdf.parse(incomingString);
and then I called curDay.GetSeconds()
for example
How I need to modify my code to use a calendar ?
is this right: cal.setTime(sdf.parse(incomingString)) ???