Works with datetime format for the time dimension