
Help With Integer
I am working on a calendar program. I am using a formula to calculate the start day of the month. The problem I have my user inputing a year using 4 digits for instance 1988. The formular however requires that the only the last 2 digits. I thought about simply subtracting 1900 but this calendar needs to work for multiple centureires. Is there someway of spliting up Integers? Maybe casting them to a string. I am open for suggestions and am thankful for any help. Thank you and Merry Christmas.

just take the remainder of the year divided by 100.
int year = 1988;
year = year % 100;
that sets year to 88.
Hope that helps

Thank you for your help have a happy holidays