Page 1 of 1

Future date

Posted: Thu Apr 18, 2024 5:24 am
by crash

I'm running a page that gives me a list where the list is shown between two dates current date and +7 days... ie operator 1 and 2
In my first operation I have CurrentDate() this works fine.. in my secong operator I have CurrentDate() +7
this used to work inpervious versions where I had ew_CurrentDate()+7

Now It just wont work I've tried CurrentDate()+ 7 , add date and a few other options..

any help on how to use CurrentDate()+7

Thanks


Re: Future date

Posted: Thu Apr 18, 2024 7:30 am
by MichaelG

You need to add 7 days to Today and format it. For example:

FormatDateTime(DateTime.Today.AddDays(7), 0)