it Doesnt work. May be because date appears in coulmns in this format 1/1/2018 12:00:00 AM
Did you try to change cells index? Maybe in your case it's 0 but not 1
Could u Plz show me loaddate() function? How will u add date from gridview to date list?
Hello. You can check the code here: https://goo.gl/MSfzVt
or this one private void LoadDate() { dates = new List(); DateTime dt; // add dates from GridView1 to the collection foreach (GridViewRow item in GridView1.Rows) { if (DateTime.TryParse(item.Cells[1].Text, out dt)) { dates.Add(dt); } } // dates.Sort(); }
Show more comments
The email address is already associated with a Freelancer account. Enter your password below to link accounts:
Link your account to a new Freelancer account
Link to your existing Freelancer account