Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi! I would get my items with from now till the next fifteen days, so I wrote this:
var nodes = listaAttivita.Children().Where("dataInizioAttivita <= "+DateTime.Now.AddDays(15)+"").OrderBy("dataInizioAttivita desc");
where dataInizioAttivita is my DateTime property. This throw a Syntax error exception. Looks fine for me, what's wrong?
Hi Barbacan,
I would try to help you the best I can.
How if you do something like this:
DateTime days = DateTime.Now.AddDays(15);var nodes = listaAttivita.Children().Where("dataInizioAttivita <= @0",days).OrderBy("dataInizioAttivita desc");
DateTime days = DateTime.Now.AddDays(15);
var nodes = listaAttivita.Children().Where("dataInizioAttivita <=
@0",days).OrderBy("dataInizioAttivita desc");
Hope this helps,
/Dennis
Did you managed to solve your issue, or do you try my solution,
Looking forward to hear from you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using DateAdd in Where
Hi! I would get my items with from now till the next fifteen days, so I wrote this:
where dataInizioAttivita is my DateTime property. This throw a Syntax error exception. Looks fine for me, what's wrong?
Hi Barbacan,
I would try to help you the best I can.
How if you do something like this:
Hope this helps,
/Dennis
Hi Barbacan,
Did you managed to solve your issue, or do you try my solution,
Looking forward to hear from you.
/Dennis
is working on a reply...