How can I convert MOODLE startdate and end date to date?
this can be found at $PAGE->course then ->startdate or ->enddate but this is a string, I wish I could convert it to a specific date format;
Probably not a string but a number being unixtime, so https://docs.moodle.org/dev/Time_API.