DateTime in query

Aug 11, 2014 at 2:19 AM
Hello I am trying to run a query that filters by DateTime. Here is an example:

var query = MainDatabase.Query<CashTransaction>();
query.Descend("Date").Constrain(DateTime.Today).Equal();
var transactions= query.Execute<CashTransaction>();

and it does not work. If I convert the date to string it works. It seems that DateTime is not a something I can query on. It would be great if this could be added in.

Thanks
Herald
Coordinator
Oct 2, 2014 at 6:04 AM
Try with ticks (long) please.