「null is not a date」と表示され帳票出力が出来ません