changed String date to Date
problem with saving patents