in reply to More date conversion happiness

You could use a list of regular expressions each of which match a possible input format, and use the results of that for outputting the desired format.

As this is homework, I'm hesitant to provide (pseudo) code. ;-) There are a number of ways to go about this, like using a big if/elsif block to match the right format. Also, you probably need some sort of lookup table for the months.

Arjen