View Single Post
Old 07-22-2004, 12:54 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
getMonth depricated so what is the right way ?

I use date objects, and I need to get the 2 digit month , 2 digit day, and 4 digit year all in sepearate calls.

the documentation says getMonth is deprecated, and replaced with Calandar.

the examples of the Calendar class i've seen are getting the info from a Calendar object though.

What is the best way to get this info from a Date object without using deprecated methods?
__________________
Mike
sde is offline   Reply With Quote