DateOnly.ToDateTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToDateTime(TimeOnly) |
Returns a DateTime that is set to the date of this DateOnly instance and the time of specified input time. |
ToDateTime(TimeOnly, DateTimeKind) |
Returns a DateTime instance with the specified input kind that is set to the date of this DateOnly instance and the time of specified input time. |
ToDateTime(TimeOnly)
- Source:
- DateOnly.cs
- Source:
- DateOnly.cs
- Source:
- DateOnly.cs
public:
DateTime ToDateTime(TimeOnly time);
public DateTime ToDateTime (TimeOnly time);
member this.ToDateTime : TimeOnly -> DateTime
Public Function ToDateTime (time As TimeOnly) As DateTime
Parameters
- time
- TimeOnly
The time of the day.
Returns
The DateTime instance composed of the date of the current DateOnly instance and the time specified by the input time.
Applies to
ToDateTime(TimeOnly, DateTimeKind)
- Source:
- DateOnly.cs
- Source:
- DateOnly.cs
- Source:
- DateOnly.cs
public:
DateTime ToDateTime(TimeOnly time, DateTimeKind kind);
public DateTime ToDateTime (TimeOnly time, DateTimeKind kind);
member this.ToDateTime : TimeOnly * DateTimeKind -> DateTime
Public Function ToDateTime (time As TimeOnly, kind As DateTimeKind) As DateTime
Parameters
- time
- TimeOnly
The time of the day.
- kind
- DateTimeKind
One of the enumeration values that indicates whether ticks specifies a local time, Coordinated Universal Time (UTC), or neither.
Returns
The DateTime instance composed of the date of the current DateOnly instance and the time specified by the input time.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για