Change date generation in plot script