Posted on: 7/4/2014 8:26:30 AM | Views : 338

Hello,
I want to get the Date of my DateTime. With "System.DateTime.Today.ToShortDateString();" it doesn't work.
Do you have a solution ?
My code :
string strDate = System.DateTime.Today.ToShortDateString(); SqlConnection oConnexion = new SqlConnection(conn); string query = "INSERT INTO Billet(Texte, Date, Auteur) VALUES (@contenu, '" + strDate + "', '" + Context.User.Identity.Name + "')";

Go to the complete details ...