Delen via


DateTimeFormatter.IncludeHour Property

Definition

Gets the HourFormat in the template.

public:
 property HourFormat IncludeHour { HourFormat get(); };
HourFormat IncludeHour();
public HourFormat IncludeHour { get; }
var hourFormat = dateTimeFormatter.includeHour;
Public ReadOnly Property IncludeHour As HourFormat

Property Value

Specifies whether the hour is included. If it is, this property specifies the format for the hour in the template.

Applies to