> How can to save a string("13/12/2007") in a field which datatype is date
> in the table?
>
> field["dob"] = xxx?
field["dob"] = Convert.ToDateTime("13/12/2007");
field["dob"] = DateTime.Parse("13/12/2007");
field["dob"] = ParseExact("13/12/2007", "dd/MM/yyyy", null);

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Mark Rae [MVP] - 13 Dec 2007 12:23 GMT
> field["dob"] = ParseExact("13/12/2007", "dd/MM/yyyy", null);
Apologies - slip of the Enter key...
field["dob"] = DateTime.ParseExact("13/12/2007", "dd/MM/yyyy", null);

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net
Elliot - 13 Dec 2007 17:43 GMT
Useful!
Thanks again.
>> field["dob"] = ParseExact("13/12/2007", "dd/MM/yyyy", null);
>
> Apologies - slip of the Enter key...
>
> field["dob"] = DateTime.ParseExact("13/12/2007", "dd/MM/yyyy", null);