Datediff calculates the no of months between two dates, Is there any function which lets you to calculate the same thing but also includes the current month.
Datediff +1 would give the answer, but just wanted to know if theres any inbuilt method.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nothing built-in, because it is just that simple to include the current month by adding one, given that you know the diff won’t include the current month. It’s elegant enough for most developers’ needs.