0
我在下面的一段代碼中收到輸入字符串格式錯誤...在調試代碼時,這是作爲一行代碼運行的,所以我無法深入瞭解可能會發生什麼導致格式異常..任何人都可以指出我在做什麼錯了..謝謝。格式異常 - RavenDB LINQ查詢
例外:
FormatException was unhandled by user code:
"Input string was not in correct format"
代碼:
store.DatabaseCommands.UpdateByIndex("Movies/NewIndexName",
new IndexQuery
{
Query =
string.Format("Status:Released AND IsDeleted:false AND ReleaseDate:{* TO {0}}",
DateTools.DateToString(new DateTime(2012, 4, 3),
DateTools.Resolution.MILLISECOND))
},
new[]
{
new PatchRequest
{
Type = PatchCommandType.Modify,
Name = "Status",
Value = "TestingReleased"
}
}, allowStale: false);
t他的工作與utc格式?看起來DateTools.DateToString丟棄尾部Z. – 2012-11-16 00:10:59