Added directive to format date