ElseIf drAtd IsNot Nothing AndAlso drAtd.Length > 0 Then Dim dr As DataRow dr = dtfinal.NewRow() dr(0) = dtAtd.Rows(0)(0) dr(1) = dtAtd.Rows(0)(1) dr(2) = dt dr(3) = "P" dr(4) = "-" dr(5) = dtAtd.Rows(0)(3) dr(6) = dtAtd.Rows(1)(3) dr(7) = dtAtd.Rows(2)(3) dr(8) = dtAtd.Rows(3)(3) dr(9) = dtAtd.Rows(4)(3) dr(10) = dtAtd.Rows(5)(3) dtfinal.Rows.Add(dr)but in every loop he prints same value which for selected area how can remove this problem
That's because you are printing the same row. Hence add a counter variable and increment it in loop.
actully my value are as follows in database like
date time
05/04/201210:00:00am
05/04/201211:00:00am
05/04/201212:00:00Pm
so how can show this same date only time is diffrent
What you want to do?
Do you want to display only date by removing time?
no i want display all time like
05/04/2012 , 10:00:00am ,11:00:00am , 12:00:00am
That's not possible with this approach. You need to have 2 columns one for storing only date and other for time if you want the desired output
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.