title: How to use Date and Time from mySql in c# Graphs?
body: <p>I have a few DateTime values in a MySQL database and would like to use them as either the X-Axis or the Y-Axis in my graph, which will be drawn in c#. I can get DateTime but it does not show me the values from MySQL Database, it shows random values. This is how far I am now:</p>
  
  <pre><code>void load_Chart()
      {
          string connectSource = "datasource=;port=;username=;password=";
          MySqlConnection myConnection = new MySqlConnection(connectSource);
          MySqlCommand command = new MySqlCommand(" select * from armr.rigpart ;", myConnection);
          MySqlDataReader myReader;
          try
          {
              myConnection.Open();
              myReader = command.ExecuteReader();
  
              while(myReader.Read())
              {
                  chart1.Series["Start"].Points.AddXY(myReader.GetString("ID"), myReader.GetDateTime("Start"));
                  chart1.Series["End"].Points.AddXY(myReader.GetString("ID"), myReader.GetDateTime("End"));
              }
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
      }
  </code></pre>
  
  <p>Hope that my question is clear enough, thank you.</p>