ありがとうございます。
Assets\testdata.cs(10,26): error CS0103: The name 'DateTime' does not exist in the current context

Assets\testdata.cs(11,9): error CS0246: The type or namespace name 'DateTime' could not be found (are you missing a using directive or an assembly reference?)
printに書き換えてやってみました。エラーメッセージ出てしまいました( ;∀;)

System.DateTime.Now.ToStringでYear.を加えて年号だけ取って、テキストとして”2019”で
合致したらQuitするようにしたら終了したので、このあとは数値化して比較できるように頑張ってみます。