SqlCommand novyprikaz = new SqlCommand("SELECT * FROM stanice WHERE id=" + selectrow, spojeni); spojeni.Open(); SqlDataReader precti = novyprikaz.ExecuteReader(); if (precti.Read()) { textBox2.Text = precti.GetString(precti.GetOrdinal("odjezd")); }
string time = Convert.ToDateTime(row["PO_Date"].ToString()).ToString("dd-MMM-yyyy");
string time = new DateTime(precti.GetOrdinal("odjezd").Ticks).ToString("HH:mm:ss");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)