?
Solved

Add month to Date time picker VB 2003

Posted on 2006-10-26
4
Medium Priority
?
707 Views
Last Modified: 2010-08-05
How do you add months to the date time picker value?
Say  6months.
0
Comment
Question by:TechMonster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 17813161
Hi TechMonster,

DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(6)

Cheers!
0
 

Author Comment

by:TechMonster
ID: 17813415
yep that was it...would it be too much to ask if you can minus a "buisness day" from the date..

So if today was monday the 23 the date time picker would show Friday 20.
and if it was Tueday the 24, it would show Monday the 23?

I have increased the pionts>>>
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 17813651
TechMonster,

        Do While True
            DateTimePicker1.Value = DateTimePicker1.Value.AddDays(-1)
            If Not ((DateTimePicker1.Value.DayOfWeek = DayOfWeek.Saturday OrElse DateTimePicker1.Value.DayOfWeek = DayOfWeek.Sunday)) Then Exit Do
        Loop
0
 

Author Comment

by:TechMonster
ID: 17813741
cool thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question