For some reason DateFormat won't work. Switched to deprecated method.