Fixes for invoice date.

On date change the scripts failed since the date values were hard-coded
in the scripts. the fix was to generate the current date via C#
functions.