show formatted date in view