At the moment I am getting the start and end date for an enrolment period using a custom SQL based function.
Is the a native function that would return these dates, using as parameters like course id / enrolment method or enrolment id?
I have moodle 3.4
Thank you!