The set y2data command sets y2 (right-hand) axis data to timeseries (dates/times). Please see set xdata.