Hello
The solution is
tabla3.Columns("Fecha de Cancelación o Devolución").DataType = GetType(Date) 'Convierte la columna a tipo fecha
dgvCanDev.Columns("Fecha de Cancelación o Devolución").FormatString = "{0: dddd, dd, MMM, yyyy}"
But I have another error with the date format
tabla2.Columns.Add("Hora del pedido").DataType = GetType(TimeSpan)
dgvPedidos.Columns("Hora del pedido").FormatString = "{0:hh:mm:ss}"
It gives me the following error in the images
The solution is
tabla3.Columns("Fecha de Cancelación o Devolución").DataType = GetType(Date) 'Convierte la columna a tipo fecha
dgvCanDev.Columns("Fecha de Cancelación o Devolución").FormatString = "{0: dddd, dd, MMM, yyyy}"
But I have another error with the date format
tabla2.Columns.Add("Hora del pedido").DataType = GetType(TimeSpan)
dgvPedidos.Columns("Hora del pedido").FormatString = "{0:hh:mm:ss}"
It gives me the following error in the images