Okay so this source has a few errors in it but it should give you a basic idea. Then you can either figure out how to use Convert.ToDateTime(bool Value); or you can use substrings to retrieve and convert the values. The snippet of substrings for this that I typed up is a little long and can be shortened greatly, so jusst go through and see if you can figure it out from there. I don't give people exact code they are looking for, but this code is close to what you want and the time isn't any more difficult than this.
int Month = 0;
int Day = 0;
int Year = 0;
string x = "";
x += textBox1.Text.Substring(0, 1);
x += textBox1.Text.Substring(1, 1);
Month = Convert.ToInt32(x);
x = "";
x += textBox1.Text.Substring(3, 1);
x += textBox1.Text.Substring(4, 1);
Day = Convert.ToInt32(x);
x = "";
x += textBox1.Text.Substring(6, 1);
x += textBox1.Text.Substring(7, 1);
Year = Convert.ToInt32(x);
DateTime dt = new DateTime();
dt.Month = Month;
dt.Day = Day;
dt.Year = 1900 + Year;
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.