Example usage for org.joda.time YearMonth parse

List of usage examples for org.joda.time YearMonth parse

Introduction

In this page you can find the example usage for org.joda.time YearMonth parse.

Prototype

public static YearMonth parse(String str, DateTimeFormatter formatter) 

Source Link

Document

Parses a YearMonth from the specified string using a formatter.

Usage

From source file:br.com.tecsinapse.exporter.converter.YearMonthTableCellConverter.java

License:LGPL

@Override
public YearMonth apply(String input) {
    return Strings.isNullOrEmpty(input) ? null : YearMonth.parse(input, YYYY_MM);
}

From source file:google.registry.tools.params.YearMonthParameter.java

License:Open Source License

@Override
public YearMonth convert(String value) {
    return YearMonth.parse(value, ISODateTimeFormat.yearMonth());
}