Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
is there a way which will return me current day of current month but if I select previous months. should give me max no of days in that month.
Hi,
Try like this.
In you year and month list box select always one possible value.
write below expression.
=if(GetFieldSelections(Month)=month(today()) and GetFieldSelections(Year)=year(today()) ,date(today()),count(Day))
Look at the attached file
Hi try
=Max(Date_Field) in text box.
Regards
ASHFAQ
This will give me Maximum day of the current month.
What I need is:
Day(Today) will give me the current date of today. but if I select previous month it should return me 30/31
I
Hi Alkesh,
If you trying to calculate number of working days use networkingdays()
you can use MonthEnd() function. when you select previous month any date the monthend() function will return the last day of the month.
Try this
=day(max(Date))
Hi,
Try like this.
In you year and month list box select always one possible value.
write below expression.
=if(GetFieldSelections(Month)=month(today()) and GetFieldSelections(Year)=year(today()) ,date(today()),count(Day))
Look at the attached file
Thanx Ashfaq...
It Worked!
Hi,
Can you close this thread.
Regards
ASHFAQ
Sure sure.. just one more help.... What if I need to select more than one month..
For example....
If I select May and July both at once: the output should be 31 days of May + 10 Days of July so that output should be 41 days!!!
would it be possible....???