Martijn van Dru
Newcomer
- Joined
- Jun 10, 2003
- Messages
- 23
I read in date's from out of a database into a listbox. But they all got dislpayed in a way of: 10/17/2003 12:00:00 AM what I find very ugly
I prefer to have them displayed in a way of: 10/17/2003
dsExp is my dataset
Exp is my table in the database
and Exp_Date_e is the column with the different dates
lbExp is the listbox where I want to display the different dates
How can I manipulate the format of the dates when they are displayed in a listbox?
I hope someone can help me,
Martijn
I prefer to have them displayed in a way of: 10/17/2003
dsExp is my dataset
Exp is my table in the database
and Exp_Date_e is the column with the different dates
lbExp is the listbox where I want to display the different dates
Code:
Me.lbExp.DataSource = Me.dsExp.Exp
Me.lbExp.DisplayMember = "Exp_Date_e"
Private Sub LoadListExp()
Me.odaExp.SelectCommand.Parameters(0).Value = Me.txtUnd_ID.Text
Me.dsExp.Clear()
Me.odaExp.Fill(dsExp)
I hope someone can help me,
Martijn