Method ToDateTime
ToDateTime(TimeOnly)
Converts this DateOnly to a System.DateTime with a specified time.
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.8 |
| UWP | 200.4 - 200.8 |