fixed date formatting in appointments