Method FromDateTime
FromDateTime(DateTime)
Converts System.DateTime to
Declaration
public static DateOnly FromDateTime(DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dateTime |
Returns
Type | Description |
---|---|
DateOnly |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Framework | 200.4 - 200.5 |
UWP | 200.4 - 200.5 |