Method ToDateTime
ToDateTime(TimeOnly)
Converts this
Declaration
public readonly DateTime ToDateTime(TimeOnly time)
Parameters
Type | Name | Description |
---|---|---|
TimeOnly | time | The time to set in the resulting DateTime instance. |
Returns
Type | Description |
---|---|
System.DateTime | A DateTime instance with the same date as this DateOnly instance and the specified time. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Framework | 200.4 - 200.5 |
UWP | 200.4 - 200.5 |