APISonar


grakn.client.concept.AttributeType.DataType.DATE

> grakn > client > concept > AttributeType > DataType > DATE
grakn APIs client APIs concept APIs AttributeType APIs DataType APIs DATE APIs

Example 1
public void setAttributeValueWithDatatypeDate() {
        try (GraknClient.Transaction tx = remoteSession.transaction().write()) {
            AttributeType<LocalDateTime> birthDateType = tx.putAttributeType("birth-date", AttributeType.DataType.DATE);
            LocalDateTime date = LocalDateTime.now();
            Attribute<LocalDateTime> dateAttribute = birthDateType.create(date);
            assertEquals(date, dateAttribute.value());
        }
    }