adwsystems:
As mentioned, use the date and time as two examples, but do not limit the ideas on parsing multiple formats to only those two items. As additional examples of input, real can be detected by the char[] containing a period and integer containing, well, an integer (no :, /, or .).