[edit] C# DateTime Millisecond Property
The DateTime Millisecond property simply returns an int which represents an number between (0 - 999).
- Millisecond: There are 1000 milliseconds in one second
[edit] Syntax
int variable = object.Millisecond;
[edit] Example
using System;
class Program
{
static void Main()
{
DateTime variable = DateTime.Now;
int ms = variable.Millisecond;
Console.WriteLine(ms);
Console.Read();
}
}
Output:
908
<= DateTime Tutorial
|