Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# timestamp

public static String GetTimestamp(DateTime value)
{
    return value.ToString("yyyyMMddHHmmssffff");
}
//  ...later on in the code
String timeStamp = GetTimestamp(new DateTime());
Console.WriteLine(timeStamp);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #timestamp
ADD COMMENT
Topic
Name
8+7 =