Hi,
On a Win 2000 I use following to determine todays date:
When I use this on a linux machine The date is not correct. It says it is 2004-8-7. How can I fix this?
thanks in advance
Sjakie
---------------------------------------------
Yes, the world is full of strange people.
On a Win 2000 I use following to determine todays date:
Code:
Calendar rightNow = Calendar.getInstance();
int year = rightNow.get(rightNow.YEAR);
int month = rightNow.get(rightNow.MONTH);
int day = rightNow.get(rightNow.DAY_OF_MONTH);
int hour = rightNow.get(rightNow.HOUR_OF_DAY);
int minute = rightNow.get(rightNow.MINUTE);
String lDate = "" + year + "-" + month + "-" + day + " - " + hour + ":" + minute;
When I use this on a linux machine The date is not correct. It says it is 2004-8-7. How can I fix this?
thanks in advance
Sjakie
---------------------------------------------
Yes, the world is full of strange people.