Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
problem in Date Time Picker in C#
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Naeem Khan
14y
6.5k
1
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Collections
Aggregate Function