add formatDateFromString static method