added new methods to format date