8 references to DayNumberFromDateTime
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (8)
58public DateOnly(int year, int month, int day) => _dayNumber = DayNumberFromDateTime(new DateTime(year, month, day));
67public DateOnly(int year, int month, int day, Calendar calendar) => _dayNumber = DayNumberFromDateTime(new DateTime(year, month, day, calendar));
139public DateOnly AddMonths(int value) => new DateOnly(DayNumberFromDateTime(GetEquivalentDateTime().AddMonths(value)));
146public DateOnly AddYears(int value) => new DateOnly(DayNumberFromDateTime(GetEquivalentDateTime().AddYears(value)));
232public static DateOnly FromDateTime(DateTime dateTime) => new DateOnly(DayNumberFromDateTime(dateTime));
461result = new DateOnly(DayNumberFromDateTime(dtResult.parsedDate));
526result = new DateOnly(DayNumberFromDateTime(dtResult.parsedDate));
594result = new DateOnly(DayNumberFromDateTime(dtResult.parsedDate));