Hi,
I need a DateTime variable to be reachable from any node.
However, KNIME allows me only to create String, Double or Integer workflow variables. Since I think these are the only variables with the feature I need, I don´t know exactly what to do.
I understand that the String to Date&Time node does only take columns as input. Even if it did take variables, I think the output would be lost in the flow unless I make sure it is connected to every single node (which is not an option).
i hope this short example helps you.
I have defined a workflow variable as String containing a Value in date format and set filters with and without manipulation of the variable.
I find interesting how you compare a Date with a “date format” String. However, I don’t think I can use that trick every time.
In my specific case, what I need is to replace this:
Was that node connected to entire wf though?
Also, I just noticed that KNIME apparently does not allow to create date type variables at all.
Am I wrong?
Hi @francisco_munoz_m,
i am not sure if i understand your question correct.
You have the option to define variables. First as workflow variable (right click on the opened workflow in the explorer or second you can define new one in the Java Edit Variable node.
The First one are available without variable port connection, the second one you have to connect to your nodes.
What I need is a Date type variable, available without port connection. Unfortunately, it seems that KNIME only allows me to create String, Integer or Double type variables, not Dates. Therefore my issue.
I just created a String workflow variable with the format “yyyy-mm-dd”. Since I only require it while using a Java Snippet node, I just use a method to turn it into a Date variable (which serves only the node’s code) each time.