DateTime operations

Topics: Help
Apr 19, 2012 at 1:29 AM

Greetings!

We need some enlightening help, our application must perform some DateTime operations like subtract one from another, subtract a day (integer) from a DateTime, add one date to another and so on.

How could we achieve such goals through NCalc? Which is the best way to evaluate some DateTime operations?

Thanks!

Apr 27, 2012 at 9:25 PM

Nevermind... just switch the application engine to the Fast Lightweight Expression Evaluator.

Apr 30, 2012 at 3:02 PM

from what i see of the source, you cant subtract dates at the moment. you can write your own functions that work on dates with ease. alternatively you can edit EvaluationVisitor.cs to cope with date subtraction.