added FormatDate func and ByteString struct