Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I have a column (Date column) displayed in datagridview. On a button click, i want to find out the future dates in that column and blank them using c#(Win forms).

Please suggest and help me easy way to do this.
Posted
Comments
CHill60 23-Dec-15 9:28am    
I showed you how to check all of the dates on your previous post Find the future & invalid dates and blank it on a button click[^]
Just include a check to see if the date is in the future

1 solution

C#
if (someTime > System.DateTime.Now)
    // ...


—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900