Custom Order Numbers

I want to add a date and alphanumeric fields to the order number.
How would I do this?

Replies are visible only to logged in members with an active subscription.