Link to home
Start Free TrialLog in
Avatar of bjg
bjg

asked on

Displaying the year for a Date object...

I am trying to figure out how to display the year in normal format when calling Date.getYear().  For example, the year 1998 is represented as 98 when I call Date.getYear(), but how can I get 1998 instead?
ASKER CERTIFIED SOLUTION
Avatar of gwalters
gwalters

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bjg
bjg

ASKER

Thanks, I ended up using Calendar instead, since most of the Date methods are deprecated in favor of Calendar now.
Avatar of bjg

ASKER

Thanks, I ended up using Calendar instead, since most of the Date methods are deprecated in favor of Calendar now.