ISOWeek Class (System.Globalization) | Microsoft Docs

文章推薦指數: 80 %
投票人數:10人

Provides static members to support the ISO week date that is part of the ISO 8601 date and time standard issued by the International Organization for ... Skiptomaincontent Thisbrowserisnolongersupported. UpgradetoMicrosoftEdgetotakeadvantageofthelatestfeatures,securityupdates,andtechnicalsupport. DownloadMicrosoftEdge Moreinfo Contents Exitfocusmode Language Save Edit Share Twitter LinkedIn Facebook Email Tableofcontents Language ISOWeekClass Reference Isthispagehelpful? Pleaserateyourexperience Yes No Anyadditionalfeedback? FeedbackwillbesenttoMicrosoft:Bypressingthesubmitbutton,yourfeedbackwillbeusedtoimproveMicrosoftproductsandservices.Privacypolicy. Submit Thankyou. Definition Namespace: System.Globalization Assembly:System.Runtime.dll Assembly:netstandard.dll Important Someinformationrelatestoprereleaseproductthatmaybesubstantiallymodifiedbeforeit’sreleased.Microsoftmakesnowarranties,expressorimplied,withrespecttotheinformationprovidedhere. ProvidesstaticmemberstosupporttheISOweekdatethatispartoftheISO8601dateandtimestandardissuedbytheInternationalOrganizationforStandardization(ISO). Inthisarticle publicrefclassISOWeekabstractsealed publicstaticclassISOWeek typeISOWeek=class PublicClassISOWeek Inheritance Object ISOWeek Methods GetWeekOfYear(DateTime) CalculatestheISOweeknumberofagivenGregoriandate. GetWeeksInYear(Int32) calculatesthenumberofweeksinagivenISOweek-numberingyear. GetYear(DateTime) CalculatestheISOweek-numberingyear(alsocalledISOyearinformally)mappedtotheinputGregoriandate. GetYearEnd(Int32) CalculatestheGregoriandateatwhichtheweek-numberingyearwillend. GetYearStart(Int32) CalculatestheGregoriandateatwhichtheweek-numberingyearwillstart. ToDateTime(Int32,Int32,DayOfWeek) MapstheISOweekdaterepresentedbyaspecifiedISOyear,weeknumber,anddayofweektotheequivalentGregoriandate. Appliesto Isthispagehelpful? Pleaserateyourexperience Yes No Anyadditionalfeedback? FeedbackwillbesenttoMicrosoft:Bypressingthesubmitbutton,yourfeedbackwillbeusedtoimproveMicrosoftproductsandservices.Privacypolicy. Submit Thankyou. Inthisarticle



請為這篇文章評分?