Yes Calories are calories up to a point, but the body can absorb only a certain amount per mean, so if you ate a large meal of wholegrain rice, part of it will convert to fat, regardless of the fact its a pure source of carbs and fibre.
I do think that avoiding late dinners is a worthwhile move, and its a bit like your sleep pattern, much easier to do if you eat properly during the day. A lot of late diners, tend to not take a breakfast meal, or eat a late lunch.
I have a friend (hardly scientific I know), who has taken this much further, i.e. not eating after 3pm, and its the only diet change that he's made (to a fairly reasonable diet to start with) and its definintely producing results.
To put it in perspective, Its far more important what you eat and drink, than when, and how you exercise, but as an additional effort, this is worth doing, in my opinion
Good Luck!
James