Better invoice date handling