Reintroduce the date variable.

I didn't realise this was being used in a template.