How do you get the date of this month based on today's date?

Hi all,

I would like to get the date of this month based on today’s date as a string variable using script.

Thank you,

Hi @makk

Do you need the number of the month?
You can get it using this script, output is a number variable.

@CustomScriptAction(
output = 'month'
)

def customScript(){
month = RDateTime.now().getMonthValue()
}

Or you can use Date format action.
The output is a string in this case

1 Like

Hi ashapkina

Thanks for the quick response.

That worked without a problem. How then do we get the last date of this month based on today’s date?