date formatter working propertly