TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Carlos Sanchez
NA
264
0
How to Increase a Date?
Jan 11 2005 1:13 PM
How can I add 1 day to a Date. I've tried this: MyDate.Add(new TimeSpan(1,0,0,0)) but it doesn't work. I'm using it into a while statement, like this: MyDate = DateTime.Now; FinalDate = dtpFinalDate.Value; while (MyDate <= FinalDate) { //Statement MyDate.Add(new TimeSpan(1,0,0,0)) } what am I doing wrong? thanx in advance.
Reply
Answers (
3
)
Capture the keyboard input to my application
Saving and Loading