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 ...