Change Variable if Date is today

Change Variable if Date is today

Hello,

is there a sample how I can change a value of a variable of an Device when the date is the same from antoher variable of the Date? 

Thanks 
Fabian