title: Im getting an error about Datetime when Im just trying get the value of a cell from a gridview
body: <p>In my <code>.aspx</code> design my gridview has a <code>apply</code> buttonfield. If the apply button is clicked, I want to get the value of the <code>cell[0]</code> from the row where the apply button is clicked. After I get that value I want to update the <code>exav_id</code> column in my database.</p>
  <p><img src="https://i.stack.imgur.com/CppIl.png" alt="This is the photo of the error I'm having" />]</p>
  <pre><code>protected void gvExAv_RowCommand(object sender, GridViewCommandEventArgs e)
  {
      if (e.CommandName == &quot;APPLY&quot;)
      {
          LoginInfo login = (LoginInfo)Session[&quot;login&quot;];
          ApplyDAO applyDAO = new ApplyDAO(login.UserName, login.Password);
          int index = Convert.ToInt32(e.CommandArgument);
          int id = Convert.ToInt32(gvExAv.Rows[index].Cells[0].Text); 
  
  
          if (e.CommandName == &quot;APPLY&quot;)
          {
              try
              {
                  applyDAO.apply(id);
              }
              catch (Exception ex)
              {
                  
              }
          }
      }
  }
  </code></pre>
  <p>This my code on <code>appplyDAO.apply(id)</code>:</p>
  <pre><code>public void apply(int id)
  {
       OracleConnection conn = new OracleConnection(String.Format(&quot;Data Source=Neptune; User Id={0}; Password={1}&quot;, UserName, Password));
       OracleCommand cmd = new OracleCommand(&quot;UPDATE apply SET exav_id = :id&quot;, conn);
       cmd.Parameters.AddWithValue(&quot;:id&quot;, id);
  
      conn.Open();
       try
      {
          cmd.ExecuteNonQuery();
      }
      catch (Exception ex)
      {
    
      }
      finally
      {
          conn.Close();
      } 
  }
  </code></pre>