Expand my Community achievements bar.

How to transfer string to date?

Avatar

Level 2

Hi, I have a string variable which contains date like "Jan 18, 2011". How can I convert from string to date in Workbench so I can pass it as parameter (type date needed)? I tried with parse-date(variable) but no success:

Cannot coerce object: Jan 18, 2011 of type: java.lang.String to type: class java.util.Date

What wrong here? How can I solve it?

cu Floh

0 Replies