Is it legal in the state of Michigan to date an 18-year-old if you are 16 and what is the legal age to have sex?

There are no laws for dating so that is up to your parents to decide. The age of consent in Michigan is 16 so that is when you can give legal consent for having sex.