You take notes (maybe keep a diary?) and save them to a file. The notes can contain the date in the format dd/mm/yyyy (two or four digits by unit), or the time in the format hh:mm (two digits by unit), or both of them.
You get a line from the notes file and need to know if it has an indication of date or time. If the line contains a date, you need to print the message: "date", if it has the time, print out the message: "time". If the line contains both, print the message: "datetime". In other cases, print "none".