Okay this seems to me like it ought to have a really simple answer.
I write java code that (among other things) uses Dates from a database. These are returned as java Date objects directly from the database so I can't really change that I'm starting out with Dates.
Due to reasons that I do not understand, the guy who puts the code onto the production server needs for there to be no depreciated methods used. If any of you have looked at the Date object lately you can probably see that pretty much every method it uses is depreciated, most importantly the getDate(), getYear(), and getMonth() methods.
See, I need to somehow get useful information from this Date object without using any of the depreciated methods. How can this be done? Someone else must be stuck using these horrid depreciated Date object? Is there a way to transform it into a Calendar object without using getDate(), getMonth(), or getYear()?
Please help!
Chambers
I write java code that (among other things) uses Dates from a database. These are returned as java Date objects directly from the database so I can't really change that I'm starting out with Dates.
Due to reasons that I do not understand, the guy who puts the code onto the production server needs for there to be no depreciated methods used. If any of you have looked at the Date object lately you can probably see that pretty much every method it uses is depreciated, most importantly the getDate(), getYear(), and getMonth() methods.
See, I need to somehow get useful information from this Date object without using any of the depreciated methods. How can this be done? Someone else must be stuck using these horrid depreciated Date object? Is there a way to transform it into a Calendar object without using getDate(), getMonth(), or getYear()?
Please help!
Chambers