Search code examples
javadatexmlbeans

Use GDate to calculate period between dates


I am new to java and am wondering how to use GDate as specified at the JavaDocs.

  • Can anyone give a simple example how to calculate the time period between two date using GDate?

Solution

  • ..do I need to import anythig at the start of the program?

    Yes, org.apache.xmlbeans.GDate

    How to declare an object?

    GDate gDate = new GDate(/* See JavaDocs for constructors */);
    

    See JavaDocs for constructors.