Example usage for org.joda.time.format ISODateTimeFormat date

List of usage examples for org.joda.time.format ISODateTimeFormat date

Introduction

In this page you can find the example usage for org.joda.time.format ISODateTimeFormat date.

Prototype

public static DateTimeFormatter date() 

Source Link

Document

Returns a formatter for a full date as four digit year, two digit month of year, and two digit day of month (yyyy-MM-dd).

Usage

From source file:se.litsec.eidas.opensaml.ext.attributes.impl.DateOfBirthTypeImpl.java

License:Open Source License

/**
 * Constructor./*from   w  w  w . j a v a2  s. com*/
 * 
 * @param namespaceURI
 *          the namespace the element is in
 * @param elementLocalName
 *          the local name of the XML element this Object represents
 * @param namespacePrefix
 *          the prefix for the given namespace
 */
protected DateOfBirthTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
    super(namespaceURI, elementLocalName, namespacePrefix);
    this.formatter = ISODateTimeFormat.date().withChronology(ISOChronology.getInstanceUTC());
}