day is a date in yyyy-mm-dd format, such as "2024-07-15".
Write the year, the month and the day in binary, each without leading zeros, and join them with hyphens in the same order: year, month, day. Return the resulting string.day="2024-07-15" → '11111101000-111-1111'
2024 = 11111101000₂, 7 = 111₂, 15 = 1111₂.
day="1961-04-12" → '11110101001-100-1100'
The month's leading zero disappears: 04 becomes just 100.
day[4] and day[7] are hyphens and every other character is a digitday is a real calendar date from January 1, 1900 to December 31, 2100 inclusiveday="2024-07-15"
'11111101000-111-1111'
Run checks the first 3 tests in your browser. Submit checks all 89 tests on the server, hidden ones included.