Creating an overdue invoice

Creating an overdue invoice

How can I create an Invoice programmatically with an overdue status?

Alternatively, can I set the status of draft Invoices to overdue?

Thanks,
Gabe