I am happy to report that the problem is fixed. as.Date("1998-02-10") as
suggested by David handled the problem with easy. Many thanks to everybody.
as.Date(1998-02-10) really resulted in error. It is my oversight. I really
tried many things the day I was working on that and have forgotten some of