Sto instanziando un piccolo motore per le statistiche.
Per salvare i dati in un db SqlExpress uno questo codice
codice:
PV_sql = "INSERT INTO Statistiche (Date,Url,IpAddress,Referer,UserAgent) " +
            "VALUES(" +
            "" + System.DateTime.Now.ToShortDateString() + "," +
            "'" + Request.ServerVariables["URL"] + "'," +
            "'" + Request.ServerVariables["REMOTE_ADDR"] + "'," +
            "'" + Request.ServerVariables["HTTP_REFERER"] + "'," +
            "'" + Request.ServerVariables["HTTP_USER_AGENT"] + "')";
Solo che non mi riporta correttamente la data/ora... la insert viene formata correttamente ma nel db mi ritrovo sempre 01/01/1900 0.00.00
C'è da fare qualche conversione strana?