0
Answer

NEED DATE

Maneesh A N

Maneesh A N

11y
823
1
  DateTime dttt;
            DateTime dt = Convert.ToDateTime(dtpFrom.Text);
            DateTime dt1 = Convert.ToDateTime(dtpTo.Text);
            TimeSpan ts = dt - dt1;
            int ii = ts.Days;
            for (int i = 0; i <ii ; i++)
            {
                fnInvoiceSaveUpdate(block, dttt);
                DateTime dt = Convert.ToDateTime(dtpFrom.Text);
                DateTime dttt= dt.AddDays(i);
            }
IF WE GIVE 10 ENTRIES ACCORDING TO DATE...EXAMPLE
10-11-2013        AAAA
11-11-013          BBBB
12-11-2013         CCCC
13-11-2013          DDDD
I SHOULD GET THE SAME IN CRYSTAL REPORT..PLEASE GIVE CODE SOON