date is stored as string in database