Gets the current date with the time component set to midnight.
문법
DateTime.Today예제
아래 값을 입력하면 예제에 즉시 반영됩니다.
today→Today→Console→WriteLine→ToString→DateTime today = DateTime.Today;
Console.WriteLine(today.ToString("yyyy-MM-dd"));
// e.g. "2024-06-15"