Skip to content

Next calendar date with eight different digits

Question

Writing dates as MM/DD/YYYYMM/DD/YYYY, find the earliest date from today (the 20202020s) onward in which all eight digits are different (e.g. 01/23/456701/23/4567 would qualify). Give it as MMDDYYYYMMDDYYYY.

Short answer

0617234506172345 (June 17, 2345). The year must start with 22, so the month and day cannot use 22. A month is 0x0x or 1010, and a valid day then needs a leading 11 or a 00, so 00 and 11 are always used by MMDDMMDD. The earliest year is therefore 23452345, and from the leftover digits 0,1,6,7,8,90,1,6,7,8,9 the earliest date is 06/1706/17.

Adapted from QuantQuestions.io; question and answer rewritten by SelfMadeQuant.com.

See the hint and the full worked solution in the question bank (free account).

Open the worked solution