JUlius

JUlius

  • NA
  • 71
  • 0

I need help with a date field

Jun 13 2008 12:55 PM

Hello Everyone:

I am having the following question:

I have created a search screen and after the search, I click on a select button where the data gets populated into an edit form.  Everything is working fine except on my date field.

I am using vb2005 and SQL2005, the date field under the SQL side is set as DATETIME, and is formated as follow: 09/02/2004 12:00:00 AM.

I am using the following code to populate my data into the edit screen

EditRecordForm.CmbEditPriority.Text = Me.DataGridView1.CurrentRow.Cells("DateCreated").Value.ToString

The problem that i am having is that is bringing the entire 09/02/2004 12:00:00 AM.  I only would like to bring the date 09/02/2004.

Thanks in advance


Answers (1)