Serial Input - Parsing multiple formats

It hasn't been answered.

It HAS been answered. If you check, BEFORE you call atoi() that there are, or are not, invalid characters in the input, and, despite the string being "Wednesday", you call atoi() anyway, you deserve to flounder around trying to understand that 0 means error instead of a zero distance/number of minutes/whatever.