📜  c# timestamp now - C# 代码示例

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

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