changed from 'date' to 'DateTime' for time formatting