Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Problems with conversion from String to Date in JForex
 Post subject: Problems with conversion from String to Date in JForex Post rating: 0   New post Posted: Sat 06 Oct, 2012, 14:42 

User rating: 0
Joined: Mon 25 Jun, 2012, 15:55
Posts: 13
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);








 
 Post subject: Re: Problems with conversion from String to Date in JForex Post rating: 0   New post Posted: Mon 08 Oct, 2012, 07:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide a full example strategy which replicates the problem.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com