10 references to DateOnly
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (10)
45
public static DateOnly MinValue => new
DateOnly
(MinDayNumber);
50
public static DateOnly MaxValue => new
DateOnly
(MaxDayNumber);
80
return new
DateOnly
((uint)dayNumber);
129
return new
DateOnly
(newDayNumber);
139
public DateOnly AddMonths(int value) => new
DateOnly
(DayNumberFromDateTime(GetEquivalentDateTime().AddMonths(value)));
146
public DateOnly AddYears(int value) => new
DateOnly
(DayNumberFromDateTime(GetEquivalentDateTime().AddYears(value)));
232
public static DateOnly FromDateTime(DateTime dateTime) => new
DateOnly
(DayNumberFromDateTime(dateTime));
461
result = new
DateOnly
(DayNumberFromDateTime(dtResult.parsedDate));
526
result = new
DateOnly
(DayNumberFromDateTime(dtResult.parsedDate));
594
result = new
DateOnly
(DayNumberFromDateTime(dtResult.parsedDate));