ISOWeek.GetYear(DateTime) 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.
Calculates the ISO week-numbering year (also called ISO year informally) mapped to the input Gregorian date.
public:
static int GetYear(DateTime date);
public static int GetYear (DateTime date);
static member GetYear : DateTime -> int
Public Shared Function GetYear (date As DateTime) As Integer
Parameters
- date
- DateTime
A date in the Gregorian calendar.
Returns
The ISO week-numbering year, between 1 and 9999
Remarks
The ISO week-numbering year number mapping to Gregorian date can be different than the year of the given Gregorian. or example, the Gregorian date 2005-01-01 maps to the ISO week-numbering year 2004.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.