DateTime operations

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


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?


Apr 27, 2012 at 10:25 PM

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

Apr 30, 2012 at 4: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.