Select date from sql specified format?
- string date = "";
- using (SqlConnection openCon = new SqlConnection(cs))
- {
- SqlDataReader reader;
- SqlCommand cmd = new SqlCommand();
- cmd.CommandText = "select datum from mp_racun_lista where id=" + id_fakture;
- cmd.Connection = openCon10;
- openCon.Open();
- reader = cmd.ExecuteReader();
- while (reader.Read())
- {
- date = reader[0].ToString();
- }
- openCon.Close();
- }
Jayakumar BalasubramaniamPosted Jun 5, 2018, 7:29 PM
Bhairab DuttPosted Jun 5, 2018, 11:34 PM
Goran BibicPosted Jun 5, 2018, 11:33 PM
Bryian Tan
Error CS1501 No overload for method 'ToString' takes 1 arguments BSS C:\Users\Bibic Goran\Documents\Visual Studio 2015\Projects\BSS\BSS\mp_racun.cs 1499 Active
Bryian TanPosted Jun 5, 2018, 9:42 PM