fixing date code to handle 'proof' instead of a proper date