Guest User

Untitled

a guest
Jun 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Dim InputDT As New DataTable
  2. InputDT.Columns.Add(New DataColumn("test"))
  3. dt.Columns("test").DataType = GetType(Date)
  4.  
  5. Dim InputDT As New DataTable
  6. InputDT.Columns.Add(New DataColumn("test"))
  7. InputDT.Rows.Add("1/1/2018")
  8.  
  9. Dim clonedDT As DataTable = InputDT.Clone()
  10. clonedDT.Columns("test").DataType = GetType(Date)
  11. For Each row As DataRow In InputDT.Rows
  12. clonedDT.ImportRow(row)
  13. Next
Add Comment
Please, Sign In to add comment