夜ご飯、夕ご飯 There are some more way to say for dinner.
晩ご飯(ばんごはん)、夕飯(ゆうはん)夕食(ゆうしょく).
晩飯(ばんめし)夕飯(ゆうめし)←Very very casual way to say and most of time, it is said by men.
Actually there was a difference between them a long time ago but no difference nowadays.
First of all, there is no word "夜ご飯" in an encyclopedia. That means 夜ご飯 is not a correct Japanese, in the fact, but someone made up the word at some point.
夕ご飯 is originated a word from a long time ago. People had their dinner in the evening so that "dinner" was called 夕ご飯. Today, many people have dinner around the night time rather than the evening time, so 夜ご飯、晩ご飯 becomes more common. Eventually, we use all of them without any differences.