doramail05
asked on
Insert DateTime with ("yyyy-MM-dd " + _tbStartTime.Text + ":" + _tbStartMinute.Text + ":ss";
trying to insert datettime into db from asp.net code behind with same date, but different time like -->
Convert.ToDateTime(dtSAC.R ows[0]["st arttime"]. ToString(" yyyy-MM-dd " + _tbStartTimeHour.Text + ":" + _tbStartTimeMinute.Text + ":ss"))
but its giving error , 'No overload for method 'ToString' takes 1 arguments
Convert.ToDateTime(dtSAC.R
but its giving error , 'No overload for method 'ToString' takes 1 arguments
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops, It looks like angel solution :p
yup, except that I wrote, by practice, in several lines of code.
this is because I want to be able to know on which assignment the error actually occurs, if any.
this is because I want to be able to know on which assignment the error actually occurs, if any.
Open in new window
untested code, might have typos ...