formatted date fix