configoption with parameter for date formatting