471,350 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Listbox DisplayMember and DateTime Format


I am binding a DataSet to a listbox. This listbox is used to set the
current binding for an appointment page. A problem I have is that there
can only be one appointment per day and I would like the listbox to
only display the Date and not the Time. In otherwords, I want the
DisplayMember to call ToShortDateString() rather than ToStirng(). Or,
could I apply a formater or a format event to this basic binding.

Any help would be appreciated.

Feb 7 '06 #1
1 5099
One possible way you could try is the make the value a string rather
than DateTime. For example you could modify the SQL to convert date to
appropriate string before filling the dataset, or you could manipulate
the dataset itself.


Feb 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by James Radke | last post: by
3 posts views Thread by Eric Lemmon | last post: by
7 posts views Thread by Dave | last post: by
2 posts views Thread by frank | last post: by
4 posts views Thread by Rotsey | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.