Announcements
No record found.
how can i calculate the total number of days in a month
*This post is locked for comments
You can use DateStartMth and endMth to get start and end date of a month. Substract them to get number of days.
There are few other methods available in Global class and in System functions please have a look.
could you please tell me how can i get the current date of the selected month
use today() method
Hi
Please refer the below link
http://ax2012madhav.blogspot.in/2012/10/number-of-days-in-month.html
Thanks,
Kavitha
today() will give today's date i need to select the current date of selected month that can be 12 of july or 7 of may so, i want to select 12 or it can b 7
i have already go through on it but no thing effective found
Hi,
Please use following code/job to get number of days for a given date
static void AXC_NoOfDays(Args _args) { date d = mkDate(12,11,2017); int FromDays, ToDays; FromDays = date2num(DateStartMth(d)); todays = date2num(endmth(d)); info(strFmt("No of days: %1", (ToDays+1) - FromDays)); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader