Hello. I've been working on a program for several days and I already have a few thousands of lines of codes written. But I'm facing with a big dilemma right now.
I'm kind of new to .NET, I'm working in Visual Studio 2013. I'm trying to find an easiest way to do the following:
I've got these objects:
DateTimePicker1
DateTimePicker2
ListBox1
Button1
Label1
Label2
In the DateTimePicker1 , the user chooses the starting date. Let's say 1. january 2014.
In the DateTimePicker2 , the user chooses the ending date. Let's say 1. july 2014.
Now, what I need the program to do is that when the user clicks on Button1, the following will show up in Label1 and Label2:
Label1 will show total days in a number in between the dates chosen in DateTimePicker 1 and 2.
label2 will show total days in a number in between the dates chosen in DateTimePicker 1 and 2 WITHOUT every sunday and saturday that occurs in between these two dates.
Also, every saturday's and sunday's dates in between the dates chosen in DateTimePicker 1 and 2 will be added to the ListBox1.
Is there anyone who could help me out? It's an important project to me and I still have about 40% of coding left, but this is stopping me. I can't continue working on my program until I get this solved. Thank you very much.
I'm kind of new to .NET, I'm working in Visual Studio 2013. I'm trying to find an easiest way to do the following:
I've got these objects:
DateTimePicker1
DateTimePicker2
ListBox1
Button1
Label1
Label2
In the DateTimePicker1 , the user chooses the starting date. Let's say 1. january 2014.
In the DateTimePicker2 , the user chooses the ending date. Let's say 1. july 2014.
Now, what I need the program to do is that when the user clicks on Button1, the following will show up in Label1 and Label2:
Label1 will show total days in a number in between the dates chosen in DateTimePicker 1 and 2.
label2 will show total days in a number in between the dates chosen in DateTimePicker 1 and 2 WITHOUT every sunday and saturday that occurs in between these two dates.
Also, every saturday's and sunday's dates in between the dates chosen in DateTimePicker 1 and 2 will be added to the ListBox1.
Is there anyone who could help me out? It's an important project to me and I still have about 40% of coding left, but this is stopping me. I can't continue working on my program until I get this solved. Thank you very much.
Comment