Last Updated: Nov 4, 2020
Use this function to subtract the number of months from the given date.
Subtract Months (no_of_months, input_date, date_format)
Input Parameter Name | Description |
---|---|
no_of_months | Number of months to be subtracted |
input_date | given date in string format |
date_format | Date Format of the input_date parameter For more information, refer to the below table Date Format. |
Monday is considered as the start and Sunday to be the end of the week.
Code | Meaning | Example |
---|---|---|
%d | Day of the month as a zero-padded decimal number | 30 |
%-d | Day of the month as a decimal number (Platform specific) | 30 |
%m | Month as a zero-padded decimal number | 09 |
%B | Month as locale’s full name | September |
%b | Month as locale’s abbreviated name | Sep |
%y | Year without century as a zero-padded decimal number | 20 |
%Y | Year with century as a decimal number | 2020 |
To view all the Date functions, click here.