modifying datetime index for plotting purposes