Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Java in General
Alternative for java.util.Date setYear/setMonth etc
yc lim
Greenhorn
Posts: 14
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi all, i get the deprecated message while using the java.util.Date setYear, setDate etc methods. i don't understand whats wrong with using this setters, and whats the alternative for that. thanks ~
Mike Firkser
Ranch Hand
Posts: 249
I like...
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
They now want you to use a java.util.Calendar object, and use the set() method for this:
Calendar c = new Calendar(); c.set(Calendar.MONTH, Calendar.MARCH); c.set(Calendar.DAY_OF_MONTH, 20); c.set(Calendar.YEAR, 2003);
[ August 26, 2004: Message edited by: Mike Rutgers ]
Mike Firkser
Rutgers '84
yc lim
Greenhorn
Posts: 14
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
oh thanks
alot
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Passing Variables
Remove time part from java.util.Date()
trim on where clause
What is the output and Why
DWR as RPC in standalone application?
More...