I am using a function which is present in a library which I cannot modify. That function is used to set the Date by the user. Its parameters are
SetDate(sbyte day, sbyte month, sbyte year)
When I assign 2019. I want to assign 2019 to sbyte year. But the maximum value of sbyte is 127. I cannot use the last two digits of the year. As this function is taking all four digits as year.
Could you please help me out how I should tackle this problem. I have to use this function. There is no other option to write any extension method.