DateTime
noun
say it: “DAYT-tym” /ˈdeɪttaɪm/
A C# type that holds a date and a time of day.
What is DateTime in C#?
DateTime — A value type representing a date and time, optionally related to local time or UTC.
class Delivery
{
DateTime deliveryDate = new(2026, 9, 27);
}
In a sentence
- “The order's DateTime says it was placed on 27 October at 9:15.”
Level: Journeyman · More C# terms at this level
Updated