The main evening meal; neutral and widely used in both spoken and written Japanese.
Let's have curry for dinner tonight.
夕食の後で散歩に出かけた。
I went for a walk after dinner.
My mother is getting dinner ready.
I invited her to dinner.
I went out after finishing dinner.
I want to finish my homework by dinner time.
夕食 is a formal, often written term for dinner, whereas 夜ご飯 is an everyday spoken word.
without supper; skipping dinner