Possible Duplicate:
Date object to Calendar [Java]
I have a Java Date object like
Date A = Mon Nov 07 00:00:00 CET 2011;
I want to get the year ,month and day. But i saw like these getYear ,getMonth and getDay is deprecated. So how can i extract the above from the above date object.