public static string GetTimeStamp(DateTime dt) { return dt.ToString("s").Replace("-", "").Replace(":", "") + "." + dt.Millisecond.ToString("D3"); }