optimizing date format converter regex