I am looking to parse a timestamp in the following format yyyymmddhhmmss to BCD (Packed)
How would I go about implementing it? I understand that we'd use 4 bits for each decimal digit but I am a bit at a loss on how to proceed with the algorithm.
How would I go about the parsing. Do it in pairs of two digits?
For my result to be correct, I should get a returning byte array of length 7. Is my assumption correct?