Skip to Content
author's profile photo Former Member
Former Member

Calculate the no of days in the Present Month

Hi All,

I am working on a report and I need to find the no of days in the month according to the date entered by the user.

I am using User Response function to get the date.

Eg:

if user has entered the date as 4th March 2016 then it means that month is march ,so I want no of days in month as 31(March has 31 days ). Similarly, for April it should come as 30 days.

Please help.I need this formula.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2016 at 06:22 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 30, 2016 at 05:09 PM

    use this.

    =DayNumberOfMonth(LastDayOfMonth(ToDate(userresponse("Enter date");"dd/MM/yyyy")))

    According to prompt date format change the date format in the formula.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.