Maneesh A N

Maneesh A N

  • NA
  • 179
  • 108.6k

NEED DATE

Nov 16 2013 2:36 PM
  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