Solved

Hello , i would like to use a date (20221117) as an attribute , how can i do ?

  • 17 November 2022
  • 5 replies
  • 0 views

Today i use the datetimestamper to have my date in a string, but i want to convert to an attribute

 

Thanks in advance and sorry for my bad english ! 🙂

icon

Best answer by geomancer 17 November 2022, 15:18

View original

5 replies

Userlevel 4
Badge +25

The output of the DateTimeStamper is already an attribute. You do need to make sure you have that attribute defined on your output feature type though.

Thanks for your quick answer, indeed it's an attribute , called "_timestamp" , i need to replace "_timestamp" with the date of today

Userlevel 4
Badge +36

You can do this in an AttributeManager.

The attribute will not be exposed. To expose the attribute, you will have to enter it's actual name in an AttributeExposer.

Date_as_Attribute_Name

Thanks for your answer geomancer

 

After using your tips , i obtain this screenshot, is it normal ? imageimage

Userlevel 4
Badge +36

In the AttributeExposer, you have to enter 20221121 (or any other attribute name you want to expose). Entering @Value(_timestamp) will not work.

Reply