Avatar of bergertime
bergertime

asked on 

Add column to dataset

I have 2 columns in a dataset with dates:

      A                     B
1/1/2008              1/3/2008
2/5/2008               3l2l2008

I want to add a third column 'C' that would be the working days between the two dates (in excel it would be networkdays)  I've been trying something like this:

Me.DataSet1.Tables(0).Columns.Add("diff").Expression = "PU_Date" - "Del_Date"
                      Debug.WriteLine(Me.DataSet1.Tables(0).Rows(0).Item("diff"))

Thanks
.NET Programming

Avatar of undefined
Last Comment
Fernando Soto

8/22/2022 - Mon