Im using monthCalendar for mssql queries. I have problem on clients OS date format. I have datetype column but for example this query
asdf = new SqlDataAdapter("SELECT Firma, Czas, Opis,ID FROM Rok2016 WHERE Dzien=@DT AND Kto=@Kto", con);
asdf.SelectCommand.Parameters.AddWithValue("@DT", monthCalendar1.SelectionRange.Start.ToShortDateString());
asdf.SelectCommand.Parameters.AddWithValue("@Kto", label3.Text);
adds YYYY-MM-DD on OS where this dateformat is using but on diffrent its YYYY-DD-MM. How to set monthCalendar1.SelectionRange.Start.ToShortDateString() with one specific format YYYY-MM-DD for all OS? I tried to set one culture info for thread but it still doesnt work.
Thanks