added default format, added static method to format a timestamp