Skip to main content
Solved

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

  • November 17, 2022
  • 5 replies
  • 7 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 ! 🙂

Best answer by geomancer

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • November 17, 2022

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.


  • Author
  • 4 replies
  • November 17, 2022

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


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • Best Answer
  • November 17, 2022

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


  • Author
  • 4 replies
  • November 21, 2022

Thanks for your answer geomancer

 

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


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • November 21, 2022

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