« first day (734 days earlier)      last day (604 days later) » 

9:19 AM
i've got an array of 34 items, but for some reason the index gets to 951
what could be the problem?
 
10:17 AM
apologies to hijack your question Roland, but I'm also in need of an answer :P
How could I convert this "string" to a datetime? "15-11-2019"
I get {"String was not recognized as a valid DateTime."} as exception if I try to convert.todatetime
 
string dateInput = "Jan 1, 2009";
DateTime parsedDate = DateTime.Parse(dateInput);
Console.WriteLine(parsedDate);
// Displays the following output on a system whose culture is en-US:
//       1/1/2009 12:00:00 AM
something like that?
 
Well I tried the Parse function
  foreach (var dates in model.sDashboard)
        {
            try
            {
                dates.Start = DateTime.Parse(dates.STRDAT);
                dates.End = DateTime.Parse(dates.ENDDAT);
            }
            catch (Exception ex)
            {
                Console.Write(ex);
            }
        }
strdat value is = "15-11-2019"
enddat value is = "15-11-2019"
{"String was not recognized as a valid DateTime."}
 
159
Q: String was not recognized as a valid DateTime " format dd/MM/yyyy"

Shantanu GuptaI am trying to convert my string formatted value to date type with format dd/MM/yyyy. this.Text="22/11/2009"; DateTime date = DateTime.Parse(this.Text); What is the problem ? It has a second override which asks for IFormatProvider. What is this? Do I need to pass this also? If Yes how to use ...

 
I tried something similar
sec let me check
does not work neither, same exception
maybe because of the - instead of / ?
I will replace that
 
was thinking that
 
10:32 AM
solved it
pfff
wasted 2h on this shit :P
 
on some / and - ?
wasted a day on = and == :(
 
yeah took a while to figure out that the - was the issue
I know that feeling :P
I tried to call you... Twice @Falcon
 
10:50 AM
Sorry I've been busy <3
@Roland_dfa solved your index error?
 
need some help?
 
for (int i = 0; i < sizeof(detectie.detector_inputs); i++)
		{
			cout << detectie.detector_inputs[i] << endl;
		}
is a string array
 
is this c++?
 
yeah
 
10:58 AM
oh dear
 
cant help it
 
11:33 AM
Hi guys
 
hi alex
 
hey Alex
 
Hey guys
 
how are you
 
Doing ok
How are you?
 
11:42 AM
same as the whole week
 
Yeah, same here
 
 
3 hours later…
2:49 PM
i still dont get that array index
i solved it, but dunno why the index got to 951
 
3:03 PM
changed it to:

for (unsigned int a = 0; a < sizeof(detectie.detector_inputs) / sizeof(detectie.detector_inputs[0]); a = a + 1 )
 

« first day (734 days earlier)      last day (604 days later) »