invalid method calls removed from applyFormatDate