You seem to use a different syntax:
Homey.logic.updateVariable({id: TodaysDateId, variable: {'value' : dateNum}} )