I want to convert an int to a byte[2] array using BCD.
The int in question will come from DateTime representing the Year and must be converted to two bytes.
static byte[] IntToBCD(int input) { byte[] bcd = new byte[] { (byte)(input>> 8), (byte)(input& 0x00FF) }; return bcd; }