YearMonth.LengthOfMonth 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.
Returns the length of the month, taking account of the year.
[Android.Runtime.Register("lengthOfMonth", "()I", "", ApiSince=26)]
public int LengthOfMonth ();
[<Android.Runtime.Register("lengthOfMonth", "()I", "", ApiSince=26)>]
member this.LengthOfMonth : unit -> int
Returns
the length of the month in days, from 28 to 31
- Attributes
Remarks
Returns the length of the month, taking account of the year.
This returns the length of the month in days. For example, a date in January would return 31.
Java documentation for java.time.YearMonth.lengthOfMonth()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.