10 references to FromDateTime
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1549value = TimeOnly.FromDateTime(dateTime); 1567value = TimeOnly.FromDateTime(dateTime);
Microsoft.AspNetCore.Components.Tests (3)
BindConverterTest.cs (2)
217var value = TimeOnly.FromDateTime(DateTime.Now); 231var value = TimeOnly.FromDateTime(DateTime.Now);
RenderTreeDiffBuilderTest.cs (1)
1740var timeOnlyWillNotChange = TimeOnly.FromDateTime(dateTimeWillNotChange);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1900time = TimeOnly.FromDateTime(this);
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
631result = FromDateTime(dtResult.parsedDate); 697result = FromDateTime(dtResult.parsedDate); 764result = FromDateTime(dtResult.parsedDate);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
538DateTime timeOfDay = TimeOnly.FromDateTime(GetNextDateTimeValue(TimeOfDayFormat)).ToDateTime();