I started the job as a Java Software Engineer in 09-2022. I worked until the end of 04-2023. Then I took a vacation lasting 3 months, until the beginning of 08-2023. Just after I came back to the workplace, my boss told me I'm fired. Because of the law, the construction of the agreement, and notice period of 1 month, the end of the job relation is the end of 09-2023 and it is written so in the agreement termination. However, I'm not providing any services at all until the termination date.
What month should I use as the end of the job period in my cv and sites like LinkedIn? As of the middle of 08-2023, it's still current job on LinkedIn without any end date right now as I didn't expect such an outcome. Should I use 04-2023 or 09-2023 as the end date of the job period?