Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends

I want the source code for how to short the datetime while selecting the dorpdownlist but the dropdownlist contains the string like as a above 30days, above 60days, above 90days,above 120days from the currect datetime

if the user select the above 30days from the dropdownlist and click on the search button it will show the blood given date before 30days from the current date values

Please any one of them give me the idea and sample source code for that


For Example

If the user click the above 30days from the dropdownlist and click on the search button, it will show the all blood_given_date is 14.07.2013 data into datagridview



Thanks / Regards
S.Pattu
Posted

1 solution

you can easily set the different-2 values for different-2 options of the dropdown.Then you can add or substract those values from the current date and by the resulting date you can fill the data to the datagridview.For more description send some code here....
 
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