create Date column in a java node

Hi, I’m currently working on a new custom node in Java (it’s a source node creating a new table) and I need to create a date column for this new table but the only cell type objects are deprecated.
org.knime.core.data.def.TimestampCell.TYPE; → deprecated
org.knime.core.data.date.DateAndTimeCell.TYPE; → deprecated

how can I add a column with a date value (and not just a date as a string)

Thanks

Hi @didierbastogne

Great to hear! Maybe @gab1one can help out.

Best regards
Steffen

Hi @didierbastogne,

You should look at the cell types defined in this package: https://github.com/knime/knime-base/tree/master/org.knime.time/src/org/knime/core/data/time

They can represent different kinds of dates / timestamps and durations.

best,
Gabriel

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.