thelordoftherings
Programmer
Hello,
Lets say I have a Date object which contains a certain date. Since it's getYear() is deprecated:
1. How do I extract the year from the date?
2. Will it be a different method if I have java.util>date and java.sql.Date as an object?
Lets say I have a Date object which contains a certain date. Since it's getYear() is deprecated:
1. How do I extract the year from the date?
2. Will it be a different method if I have java.util>date and java.sql.Date as an object?