Count number of days in a month via pa_indicator

Y A
Tera Contributor

I am using below script in an indicator, but seems it is not working. Please share any insights.

 

var now = new GlideDateTime();
var days = now.getDaysInMonthUTC();
gs.info("Days in month : "+ days);
current.setValue(days);
2 REPLIES 2

Mark Manders
Mega Patron

What are you trying to report on?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

AndersBGS
Tera Patron
Tera Patron

Hi @Y A ,

 

Why? What is your business requirement?

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/