months
Applies NNN months modifier to a date/time value.
This function translates to the 'NNN months' modifier in SQLite's date and time functions. You can pass a negative integer to subtract months.
Example
// Add 2 months to the current date
select(DATE().now().months(2)).execute()
// Subtract 3 months from the current date
select(DATE().now().months(-3)).execute()Content copied to clipboard
Return
A KQLiteColumn with the month modifier applied.
Author
MOHAMMAD AZIM ANSARI
Parameters
months
The number of months to add. A negative value subtracts months.