I don't think that's what the OP wants, rather, he would like to be able
to specify in the binding how to do this.
In .NET 1.1, you should just hook up to the Format event on the Binding
instance for your property that is bound to the date. You will be able to
specify the format or perform it yourself here, and have the date come out
correctly.
In .NET 2.0, it gets easier, by setting the FormatString property on the
Binding instance that manages the binding between the data source and the
control.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Steve,
You can format the date by Converting the row in the data set to a date
time
and then use the invariant DateTimeFormatInfo to format the string. I
have
pasted some sample code below.
I hope this helps!
----------------------
DateTime dt = Convert.ToDateTime(ds.Tables[0].Rows[0][0]);
textBox1.Text = dt.ToString("mm/dd/yyyy");