I need to get the present year value in string so I did:
Calendar now = Calendar.getInstance();
DateFormat date = new SimpleDateFormat("yyyy");
String year = date.format(now);
It works on ubuntu but it's not working on windows 7.
Do you know why? Is there a safer way to do that?
Thanks