How to get the last date of the any month

Hi, Team
I have a query,
I need to take the last date of any month

Example: 2022_02_22 (yyyy_MM_dd)

so I need to take the last date of the above data can anyone help me to resolve this issues

Thanks
Chethan P

Hi @copy_writes

Try this expression

DateTime.DaysInMonth(Any year, Any Month).ToString
image

Regards
Gokul

4 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.