for example, if today's month: 11.month-november, it should give me 31.10.2022
if its 10.month-october, it should give me 30.09.2022
I found out the solution.
I will just get the firstday of the month, it will give me 01.11.2022
and i will substract 1 day from that value, so it will give me the last of the last month.
Pls post code screenshot of solution.
i have created a csv file with all the last day of month. The bot read the content by month and year and get the last day. inputs are year and month.
2022, 01, 31.01.2022
2022, 02, 28.02.2022
2024, 01, 31.01.2024
2024, 02, 29, 29.01.2024
Consider the leap-year.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.