G
Guest
Hello -
I've binded a dataset to a Drop Down List control on my web form, using C#,
however, the DateTime value is printed in long format. For example:
04/07/2006 12:00 AM.
My code is:
ddlObs.DataSource = ds.Tables["Observations"].DefaultView;
ddlObs.DataTextField = "ObsDate";
ddlObs.DataValueField = "ObsDate";
How can I use the ddlObs.DataTextFormatString property so that the TextField
value is only "04/07/2005"?
Thanks,
I've binded a dataset to a Drop Down List control on my web form, using C#,
however, the DateTime value is printed in long format. For example:
04/07/2006 12:00 AM.
My code is:
ddlObs.DataSource = ds.Tables["Observations"].DefaultView;
ddlObs.DataTextField = "ObsDate";
ddlObs.DataValueField = "ObsDate";
How can I use the ddlObs.DataTextFormatString property so that the TextField
value is only "04/07/2005"?
Thanks,