VOOZH about

URL: https://www.geeksforgeeks.org/java/hijrahdate-lengthofmonth-method-in-java-with-example/

⇱ HijrahDate lengthOfMonth() method in Java with Example - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HijrahDate lengthOfMonth() method in Java with Example

Last Updated : 27 Feb, 2020
The lengthOfMonth() method of java.time.chrono.HijrahDate class is used to get the number of days present in a month represented by a particular hijrah date. Syntax:
public int lengthOfMonth()
Parameter: This method does not accept any argument as a parameter. Return Value: This method returns the number of days present in a month represented by a particular Hijrah date. Below are the examples to illustrate the lengthOfMonth() method: Example 1:
Output:
no of day present: 30
Example 2:
Comment