Should set dateFormat in props not state