DateTimeAdd help

Anyone know how to use DateTimeAdd? I just want to add one day to the date of the current bar. I have this:

      date = GetDateNum();   
      nextDate = DateTimeAdd(date,1,inDaily);


AddColumn(date,“date”,1.0);
AddColumn(nextDate,“nextDate”,1.0);

And I get the results shown in the screenshot.
Thanks