Fix bug for displaying date with an appointment