DateTimeFormatInfo Constructor
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.
Initializes a new writable instance of the DateTimeFormatInfo class that is culture-independent (invariant).
public:
DateTimeFormatInfo();
public DateTimeFormatInfo ();
Public Sub New ()
Remarks
This constructor creates a DateTimeFormatInfo object that represents the date and time information of the invariant culture. To create a DateTimeFormatInfo object for a specific culture, create a CultureInfo object for that culture and retrieve the DateTimeFormatInfo object returned by its CultureInfo.DateTimeFormat property.
The properties of the DateTimeFormatInfo object created by this constructor can be modified. However, you cannot modify the Calendar property, because the invariant culture supports only a localized version of the Gregorian calendar. To create a DateTimeFormatInfo object that uses a specific calendar, you must instantiate a CultureInfo object that supports that calendar and assign the calendar to the Calendar property of the DateTimeFormatInfo object returned by the CultureInfo.DateTimeFormat property.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기