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
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
GregorianCalendar
Frank Jacobsen
Ranch Hand
Posts: 378
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do i get out the year mont and day out from a GregorianCalendar !
I can do this:
Date startDato = gre.getTime();
But all the methods are deprecated !
Sooooo what schould i do, to do this correct ???
Frank
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Reading the JavaDoc, for..ohh...a good ten seconds, tells me that there is a get(int field) method avaliable in Gregorian calendar. Reading the deprecation message for Date.get[whatever]() even gives me the correct way to call this method.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
typecast gregoriancalendar object as date object?
Adjusting GregorianCalendar to reflect a specific TimeZone
JAVA FILE INPUT-OUTPUT ... SOMEONE PLEASE HELP!!!!!
Calendar woes
Bug in Gregorian Calendar?
More...