Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Reply
problem in Date Time Picker in C#
Naeem Khan
Dec 22 2009 6:02 AM
6.5k
Reply
hello every one ,
i have problem in date time picker actually i m putting validation for cheque date .. it should not be greater than 180 days . because cheque id valid for 180 days so user only can put date from today dates to 180 days .. is it pssoible in c#.. if yes than let me know.. this is my code please check it ....
if (dtp_cheque_date.Value < DateTime.Today)
{
MessageBox.Show("Cheque Date cannot be less than today!");
dtp_cheque_date.Value = DateTime.Today;
}
thanks in Advance
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Collections
Aggregate Function