Im having problem with substract the date retriave from database in gridview with today's date.... And calculate it...Is anyone can help me. Im just learning Visual C#.
here is my code...
DateTime datenow = DateTime.Now;
DateTime datethen = DateTime.Parse( e.Row.Cells[3].Text);
TimeSpan diff = datenow - datethen;
int days = diff.Days;
if (days < 1)
{
e.Row.Cells[3].BackColor = System.Drawing. Color.White;
}
pls...
here is my code...
DateTime datenow = DateTime.Now;
DateTime datethen = DateTime.Parse( e.Row.Cells[3].Text);
TimeSpan diff = datenow - datethen;
int days = diff.Days;
if (days < 1)
{
e.Row.Cells[3].BackColor = System.Drawing. Color.White;
}
pls...
Comment