When you create an event, you will have the option to sell tickets online. When you turn on the toggle button, you will have an option to set the last day tickets will be available for sale on the portal. After that date they will no longer be able to purchase tickets from the online portal.