formatTime function

Formatting time series