Date/Time Question

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I have a SQLConnection object, DataAdapter, and Dataset on my form. I am
able to connect to the SQL 2000 server and retrieve data into my dataset.
When I bind a textbox to a dataset column which contains a date, I see both
the date and time displayed in the box. How can I only display just the date
in the textbox and remove the time piece?

Thanks!
 
Thank you for your reply, Stan. I'm not sure where to place the code you
suggested. When I place it in the form load procedure, I see the proper
format. However, when I move to the next record (next button) the textbox
goes back to showing the date and time versus only the date.

RB
 
Hi Robert,

Check out Binding.Format Event .net help topic (there is a sample, too).
 
Back
Top