Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AddMonths method in expressions #157

Open
mfenniak opened this issue Nov 3, 2013 · 0 comments
Open

Support AddMonths method in expressions #157

mfenniak opened this issue Nov 3, 2013 · 0 comments

Comments

@mfenniak
Copy link
Owner

mfenniak commented Nov 3, 2013

DateTime & DateTimeOffset's AddMonths method adds a specified number of months to a date time. If the date falls on an invalid day (eg. February 31st), it rolls the day number back to the last valid day for that month. Because of this logic and the fact that not all months are the same length, it is not trivial to implement AddMonths in our expressions.

It should be possible, though, to implement it as an expression that constructs a new time object with some logic. Maybe it's be easiest to implement as a JavaScript snippet that's automatically inserted into the expression tree by our expression builder... that'd be kinda cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant