diff --git a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/json/AspectModelJsonPayloadGenerator.java b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/json/AspectModelJsonPayloadGenerator.java index eeb335fa2..623e6c440 100644 --- a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/json/AspectModelJsonPayloadGenerator.java +++ b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/json/AspectModelJsonPayloadGenerator.java @@ -513,6 +513,9 @@ private Optional getDateFormat( final String urn ) { if ( XSD.duration.getURI().equals( urn ) ) { return Optional.of( new SimpleDateFormat( "PddD" ) ); } + if ( XSD.date.getURI().equals( urn ) ) { + return Optional.of( new SimpleDateFormat( "yyyy-MM-dd" ) ); + } return Optional.empty(); }