Date changed to appropriate interval