Added date format to date picker, error log for Adding drugs for chart