Emit document date

For now, assumed to be the first line of the text
(we check first to see if the first line looks like a date)