Added the formated date utility and applied it to encounter page

Date format working and implemented in encounter