Hi.
I'm trying to create a date and have decided to use Calendar.
I've tried:
Calender myDate = Calendar.getInstance();
then:
String printableDate = myDate.DAY_OF_MONTH + "\\" + myDate.MONTH + "\\" + myDate.YEAR;
But for some reason I get the wrong date appear? My clock's set correctly and when I print out myDate it displays the correct values in amongst all the other data.
If anyone knows how I can easily create a date with Calendar I'd be VERY grateful!
Cheers
Oxy
we are all of us living in the gutter.
But some of us are looking at the stars.
I'm trying to create a date and have decided to use Calendar.
I've tried:
Calender myDate = Calendar.getInstance();
then:
String printableDate = myDate.DAY_OF_MONTH + "\\" + myDate.MONTH + "\\" + myDate.YEAR;
But for some reason I get the wrong date appear? My clock's set correctly and when I print out myDate it displays the correct values in amongst all the other data.
If anyone knows how I can easily create a date with Calendar I'd be VERY grateful!
Cheers
Oxy
we are all of us living in the gutter.
But some of us are looking at the stars.