Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.fge.jsonschema.format.draftv3;
 
 
 import static org.joda.time.DateTimeFieldType.*;
 
public final class DateAttribute
    private static final FormatAttribute INSTANCE = new DateAttribute();
    private DateAttribute()
    {
        super("date""yyyy-MM-dd");
    }
    public static FormatAttribute getInstance()
    {
        return ;
    }
    @Override
    protected DateTimeFormatter getFormatter()
    {
        DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder();
        builder = builder.appendFixedDecimal(year(), 4)
            .appendLiteral('-')
            .appendFixedDecimal(monthOfYear(), 2)
            .appendLiteral('-')
            .appendFixedDecimal(dayOfMonth(), 2);
        return builder.toFormatter();
    }
New to GrepCode? Check out our FAQ X