Hi all ranchers !
I have a small problem and I'm sure there is a simple answer out there...
well here goes..
I need to parse the current date into a simple
string like this:
(lets take today for example) "061029"
Now, I can't see how I can use Date class without using deprecated methods, so I thought of using Calendar.
Problem is I don't see how I can "initialize" it and get true results.
(when I try getInstance() and then MONTH and others I get wrong results)
Here is a simple
testing code I tried:
The printout was:
Month = 2 This is obviously wrong since we are in October which should be 10 not 2.
I anyone can shed some light this way, I'll be grateful
Dave