I have a datagridview that tracks when employees clock in and out. I used the datetime data type in sql but I dont want the year to display. How would i go about doing this? Do i have to modify my select statement, or can I do it with vb code?
Dim col1 As New DataGridViewTextBoxColumn
col1.DefaultCellStyle.Format = "t" 'Time format
col1.DataPropertyName = "ColumnName"
DataGridView1.DataSource = dt 'Instance of DataTable