C# SQLite Insert Datetime type Value
问题 I want Insert DateTime Type Value.But I got this Error Source Code private void Execute(string query) { SQLiteCommand cmd = new SQLiteCommand(query, conn); int result = cmd.ExecuteNonQuery(); Debug("Executed query: {0} Result: {1}", query, result); } private string DEscape(DateTime time) { return time.ToString(@"\'yyyy-MM-dd\'"); } public void InsertVideo(string videoID, DateTime releaseDate, string[] genres) { string genreStr = ""; foreach (string g in genres) { genreStr = genreStr +