When did dinosaurs first appear?

Triassic period

**********