Reformat "Mon dd" date format to "YYYY-mm-dd" in a stream

Based on <http://unix.stackexchange.com/a/76693/3645>.