2011-01-11 31 views
3

我有一個很大的flinq查詢返回,其中包括許多其他事情,一個對話開始的日期。我想只返回在1-1-2011之後開始的對話。如何將數據庫返回的日期與日期(字符串或其他)進行比較?

我有這樣的事情:

conversation.TimeOfInitiation > "1-1-2011" 

但我得到這個錯誤:

The type System.Nullable<System.DateTime> does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface

obvoiusly我幼稚的做法沒有成功。我如何解決這個問題?

回答

相關問題