Daily Archives: September 26, 2011

date and calendar

java.util.date was a really  logic thing for me… but now, all cool functions on Date are deprecated… crap… ok with Calendar it makes object-oriented-wise more sense… but how the hell do i get from an Date to the Calendar? Calendar offers only an getInstance() function, which actually sets the Calendar to current datetime… not really the thing i wanted…

Calender cal = Calender.getInstance();
cal.setTime(date);

is the solution… crap…