Have year on 4 digits from a Date objectTag(s): Date and Time
You need to add 1900 to it to get the 4 digit year.
int year = myDate.getYear() + 1900;
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com