DATE compares in calendar order

Complete the previous lesson to unlock this one.

Back to the path

DATE compares in calendar order

Level 2: Types. DATE is a real type in 9618, written dd/mm/yyyy. < means earlier, not a smaller string.

Read a DATE (the input looks like 02/01/2005). If it is earlier than 01/09/2010, output before. Otherwise output on or after.

02/01/2005 < 01/09/2010 is TRUE. A date written without spaces is a date; 10 / 02 / 2005 with spaces is division.