Danel's name is not in the Title: The Aghat Epic, but he figures in the story.
Look for links or sources related to the city of Ugarit. The language was Canaanite but the writing was in
cuneiform.
As for Daniel. The biggest key to the story's date of composition is the reference to Darius the Mede.
Darius is not unknown to history. That's how Thucydides and Herodotus referred to the Persian invaders and the Greek victory over them at Marathon. They called them Medes and their king was Darius.
Unfortunately, the year was 490 BC.
But Daniel's author got something out of his Seleucid history classes in the 2nd century BC.