试图减去两次以节省时间

时间:2017-09-30 10:16:09

标签: c#

我想把时间减去C#代码

    cmd.CommandText = "update TECHNOVA_SMS_TICKET set ISSUE_STATUS='" + statuchange + "' , SMS_CLOSED_TIME= '" + closedTime.Text + "' , SMS_TIME_SPENT= '+ NVL(24 * (to_date(" + closedTime.Text + ",'MM/DD/YYYY HH:MI:SS PM') - to_date(" + currecT + ",'MM/DD/YYYY HH:MI:SS PM')),0)' where SMS_TICKET_ID='" + issueId + "'";
    cmd.ExecuteNonQuery();  

    issueclosedsucess.Text = " Issue is Closed. Acknowlege!";
    issueclosedsucess.ForeColor = System.Drawing.Color.Green;

    dashboardissue();

错误是附加信息:外部组件抛出异常。

0 个答案:

没有答案