Click here to Skip to main content
15,908,437 members
Home / Discussions / C#
   

C#

 
GeneralRe: List Dates Between 2 Dates Pin
J4amieC1-Nov-06 1:20
J4amieC1-Nov-06 1:20 
GeneralRe: List Dates Between 2 Dates Pin
tadhg881-Nov-06 1:37
tadhg881-Nov-06 1:37 
GeneralRe: List Dates Between 2 Dates Pin
Pete O'Hanlon1-Nov-06 1:31
mvePete O'Hanlon1-Nov-06 1:31 
GeneralRe: List Dates Between 2 Dates Pin
tadhg881-Nov-06 1:48
tadhg881-Nov-06 1:48 
GeneralRe: List Dates Between 2 Dates Pin
Pete O'Hanlon1-Nov-06 1:52
mvePete O'Hanlon1-Nov-06 1:52 
GeneralRe: List Dates Between 2 Dates Pin
tadhg881-Nov-06 2:41
tadhg881-Nov-06 2:41 
GeneralRe: List Dates Between 2 Dates Pin
Pete O'Hanlon1-Nov-06 3:09
mvePete O'Hanlon1-Nov-06 3:09 
GeneralRe: List Dates Between 2 Dates Pin
tadhg881-Nov-06 4:21
tadhg881-Nov-06 4:21 
thanks alot for the help its appreciated i ended up using an arrayList to store the dates for each injury but ill def have a look at the hashtables
thanks again

private ArrayList AddDaysInjuredToArray(DateTime startDate, DateTime endDate, ArrayList dateList)
{
//*** set arraylist = to arraylist of days returned
dateList = AddDatesInBetween(startDate, endDate, dateList);

//*** sort arraylist making it easier to find duplicates
dateList.Sort();

//*** remove duplicates
for (int i = dateList.Count - 2; i >= 0; i--)
{
if ((DateTime)dateList[i] == (DateTime)dateList[i+1])
dateList.RemoveAt(i+1);
}

//*** return arrayList containing list of days injured with no duplicates
return dateList;
}

private ArrayList AddDatesInBetween(DateTime startDate, DateTime endDate, ArrayList dateList)
{
//*** start with day after startDate as startDate is not to be counted
DateTime newDate = startDate.AddDays(1);
//*** while newDate before endDate
while (newDate < endDate)
{
//*** add newDate to arraylist
dateList.Add(newDate);
//*** set newDate to next date
newDate = newDate.AddDays(1);
}
//*** return arrayList containing list of days injured
return dateList;
}
Questiondealing with hebrew path names Pin
Liorsh1-Nov-06 0:44
Liorsh1-Nov-06 0:44 
Questionhow to retrive a set of photos stored in a single folder and display it in the webpage using C#.net Pin
krishsenthilraj31-Oct-06 23:43
krishsenthilraj31-Oct-06 23:43 
AnswerRe: how to retrive a set of photos stored in a single folder and display it in the webpage using C#.net Pin
Tamimi - Code1-Nov-06 0:03
Tamimi - Code1-Nov-06 0:03 
QuestionRe: how to retrive a set of photos stored in a single folder and display it in the webpage using C#.net Pin
krishsenthilraj1-Nov-06 1:39
krishsenthilraj1-Nov-06 1:39 
Answeruser repeater Pin
Tamimi - Code1-Nov-06 2:42
Tamimi - Code1-Nov-06 2:42 
QuestionRe: user repeater Pin
krishsenthilraj1-Nov-06 3:05
krishsenthilraj1-Nov-06 3:05 
AnswerRe: how to retrive a set of photos stored in a single folder and display it in the webpage using C#.net Pin
_AK_1-Nov-06 0:04
_AK_1-Nov-06 0:04 
QuestionRasing Asynchronous delegates in the invocation order Pin
RSangeetha31-Oct-06 23:31
RSangeetha31-Oct-06 23:31 
AnswerRe: Rasing Asynchronous delegates in the invocation order Pin
djlove1-Nov-06 6:00
djlove1-Nov-06 6:00 
QuestionOracle sql Pin
cw.stenberg31-Oct-06 23:13
cw.stenberg31-Oct-06 23:13 
Questioncan we use matlab functions in c# Pin
s4_sabahatf31-Oct-06 23:13
s4_sabahatf31-Oct-06 23:13 
AnswerRe: can we use matlab functions in c# Pin
Russell Jones31-Oct-06 23:22
Russell Jones31-Oct-06 23:22 
GeneralRe: can we use matlab functions in c# Pin
Tarakeshwar Reddy1-Nov-06 3:27
professionalTarakeshwar Reddy1-Nov-06 3:27 
QuestionRedirect Console output to text file Pin
djlove31-Oct-06 23:03
djlove31-Oct-06 23:03 
QuestionScroll bar color Pin
Mandaar Kulkarni31-Oct-06 22:53
Mandaar Kulkarni31-Oct-06 22:53 
AnswerRe: Scroll bar color Pin
Rahithi1-Nov-06 6:24
Rahithi1-Nov-06 6:24 
QuestionBlog: Recursive call with anonymous function Pin
aamironline31-Oct-06 22:49
aamironline31-Oct-06 22:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.