There is the Remainder operator in C#
The remainder operator % computes the remainder after dividing its
left-hand operand by its right-hand operand.
int year = formModel.JamKeluar.Year;
int aas = year % 1000;
Console.WriteLine(aas);
1
solved How to get the int value last digit of the year? [closed]