Hello Support,
I have a problem parsing a String to Date format in JForex. It worked well for me on Eclipse. What's wrong with my code?
Thank you
Here is the code:
SimpleDateFormat format = new SimpleDateFormat( "dd.MM.yyyy hh:mm" );
java.util.Date OutputDate = null;
long time=0;
try {
OutputDate = format.parse(StringTime);
time=OutputDate.getTime();
console.getOut().println(time+ " Time");
} catch (Exception e) {
e.printStackTrace();
}
console.getInfo().println("Output " + time);