generate formated stamp for loging