Show / Hide Table of Contents

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
TargetVersions
.NET Framework200.4 - 200.8
UWP200.4 - 200.8
In This Article
Back to top Copyright © 2022 Esri.