Nancy,
>
>Actually, FoxPro Dates are just translated into .NET DateTime type through the DataReader or DataTable. I think that where you're getting a bit off track is thinking that
>
>drWORK_HIS["date_clos"]
>
>is a DateTime or Date. It's actually neither. By itself, it's just a plain old object.
>
>Also, keep in mind you can use the following:
>
>Convert.ToDateTime(drWORK_HIS["date_clos"])
>
>
Thank you for explaining this. I didn't know of the class/method Convert. Actually I remember seeing it somewhere but as usually not paying attention <g>.
>
>Hope it works for you. In case you haven't already noticed, .NET doesn't have any idea about empty dates, unfortunately. So, empty dates come across as 12/30/1899, which is quite a bother. I don't understand why it at least couldn't come in as DateTime.MinValue, but that's how it is.
I got hit by this 12/30/1899 date some time ago. And the way I deal with it is I always compare the date to year 1990. If it is before that date, I display empty date.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham