Which one is correct?

1. Your homework is due on Friday.
2. Your homework is due by Friday.