id , current_ date but if i change
regional seting English(United Staes ) to french(France) then it hows error
it show error if regionl setting is English(United Staes ) value inserted sucessfully
any one tell how i set regional setting for my project
Expand|Select|Wrap|Line Numbers
- try
- {
- ss = DateTime.Now;
- objSqlConnection.Open();
- SqlCommand objSqlCommand = new SqlCommand ("insert into test values ( '" + ss + "',125)",objSqlConnection);
- objSqlCommand.ExecuteNonQuery();
- MessageBox.Show("Inserted sucessfully");
- objSqlConnection.Close();
- }
- catch(Exception ex)
- {
- MessageBox.Show(ex.Message);
- objSqlConnection.Close();
- }