added functionality to plot datetime on x-axis