convert datetime to decimal
-
Hi all, i am facing one problem in my windows application, DateTime days; DateTime day1; DateTime day2; day1 = (Convert.ToDateTime(dtdata1.Rows[0]["firstrepaymentduedate"])); day2=(Convert.ToDateTime(dtdata1.Rows[0]["trenchdate"])); decimal interestrate; int outstandingamount; decimal interestamount = (outstandingamount * interestrate * days) / 365; here days is in datetime but interestamount is decimal. so we are getting error in converting datetime to decimal please any body knows this solution please give reply to me as soon as possible thanks & regards sarp
sarp
-
Hi all, i am facing one problem in my windows application, DateTime days; DateTime day1; DateTime day2; day1 = (Convert.ToDateTime(dtdata1.Rows[0]["firstrepaymentduedate"])); day2=(Convert.ToDateTime(dtdata1.Rows[0]["trenchdate"])); decimal interestrate; int outstandingamount; decimal interestamount = (outstandingamount * interestrate * days) / 365; here days is in datetime but interestamount is decimal. so we are getting error in converting datetime to decimal please any body knows this solution please give reply to me as soon as possible thanks & regards sarp
sarp