Added new date and time formatting method