Last post Aug 19, 2008 05:11 AM by Sidewinder2
Aug 19, 2008 04:07 AM|Sidewinder2|LINK
I got an format exception when tried to convert a string to datetime .Actually the string was in correct structure to convert it to datatime ,it was "8/18/08 10.00am"
the code is
string START_TIME =((DataGrid1.Items[i].Cells.Text) + " " + (DataGrid1.Items[i].Cells.FindControl("Start_Time") as TextBox).Text);
i had populated a datagrid cell with month/date/year like
DateTime Crnt_Time =DateTime.Now;
int day = Crnt_Time.Day;
int mnth = Crnt_Time.Month;
int yr = Crnt_Time.Year;
string Today = day + "/" + mnth + "/" + yr;
and i have a text box column in my datagrid to enter hours.
when i enter "Hours"in that text box cell in datagrid it should be tied up with the month/date/year value and stored in a local variable
Could you please tell me a solution for this?
Aug 19, 2008 04:46 AM|venkatu2005|LINK
hi whether u tried this
Let me know.
Aug 19, 2008 05:11 AM|Sidewinder2|LINK
I Solved it, we have to enter the time like 10:00 etc for that we may write a jscript
The answer is,