If you plan to travel by public transport to and from the airportyou will need to plan it, as services vary at different times of the year and day.
Whether you are arriving at Dalaman or Antalya airport, you will first need to get the airport bus to the nearest main bus terminal.
For Dalaman, this is the Fethiye bus station, and for Antalya, this is the main city bus station. From there you will need to get on the local service bus. These small buses stop at many villages on route and typical journey times are 3 hours from Dalaman and 5 hours from Antalya.