nicer date formatting with creation of new date directive