I’m new to this Java thing and I’m a little unclear on how I would write my own DateFormat subclass if Date is (mostly?) deprecated.
- Should I be using Date or Calendar?
- If Calendar across the board, what class replaces DateFormat?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Firstly
java.text.DateFormat classis not deprecated, you usejava.util.Dateclass as a bridge to format ajava.util.Calendarobject usingjava.text.DateFormatclass.