Lesson 1.6 Bits needed for calendar date

Can you explain the minimum of 9 bits needed to send a calendar date (mm/dd)?

In order to solve the minimum number of bits needed for the month and day we think about the largest both of those values can be.

The latest month is December which is the number 12 or 1100 in binary.
The longest month has 31 days which is 11111 in binary.
So December 31st or 12/31 could be 1100 / 11111.

1 Like

Thank you. At first, I was seeing it as one number 1231 and not putting in the / for separation. Makes perfect sense! Thanks.