Example usage for org.joda.time Partial toString

List of usage examples for org.joda.time Partial toString

Introduction

In this page you can find the example usage for org.joda.time Partial toString.

Prototype

public String toString(String pattern) 

Source Link

Document

Output the date using the specified format pattern.

Usage

From source file:net.sourceforge.fenixedu.dataTransferObject.manager.academicCalendarManagement.CalendarEntryBean.java

License:Open Source License

public static String getPartialString(Partial partial) {
    return partial.toString("MMyyyy");
}

From source file:net.sourceforge.fenixedu.presentationTier.Action.externalServices.epfl.ExportPhdIndividualProgramProcessesInHtml.java

License:Open Source License

private static void drawQualification(final Page page, final Qualification qualification) throws IOException {
    page.tableStart("tstyle2 thwhite thnowrap thlight thleft thtop ulnomargin ");
    if (qualification != null) {
        final QualificationType type = qualification.getType();
        page.rowStart().header("Type:").column(type == null ? "-" : type.getLocalizedName()).rowEnd();
        final String degree = qualification.getDegree();
        page.rowStart().header("Scientific Field:").column(degree == null ? "-" : degree).rowEnd();
        final String school = qualification.getSchool();
        page.rowStart().header("Institution:").column(school == null ? "-" : school).rowEnd();
        final String mark = qualification.getMark();
        page.rowStart().header("Grade:").column(mark == null ? "-" : mark).rowEnd();
        final Partial attendedBegin = qualification.getAttendedBegin();
        page.rowStart().header("Attended from:")
                .column(attendedBegin == null ? "-" : attendedBegin.toString("MM/yyyy")).rowEnd();
        final Partial attendedEnd = qualification.getAttendedEnd();
        page.rowStart().header("Attended to:")
                .column(attendedEnd == null ? "-" : attendedEnd.toString("MM/yyyy")).rowEnd();
    }/*from   w  w  w .ja v a2 s. c o m*/
    page.tableEnd();
}

From source file:org.fenixedu.qubdocs.util.reports.helpers.DateHelper.java

License:Open Source License

public String monthYear(final Partial partial) {
    return partial.toString("MM/yyyy");
}