📜  c# timestamp - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.210000             🧑  作者: Mango

代码示例6
public static String GetTimestamp(DateTime value)
{
    return value.ToString("yyyyMMddHHmmssffff");
}
//  ...later on in the code
String timeStamp = GetTimestamp(new DateTime());
Console.WriteLine(timeStamp);