Format date for x labels as it makes sence for selected time perio