SimpleDateFormat error with BIDI

Discussion in 'Java' started by dickerson.sd@gmail.com, Aug 30, 2006.

  1. Guest

    SimpleDateFormat parse fails on BIDI system using the correct format...

    SimpleDateFormat df = new SimpleDateFormat( "yyyy-MM-dd");
    System.out.println("Current Date: "+df.format(new Date()));
    try {
    System.out.println("now parsing current date");
    df.parse("2006-08-30");
    } catch (Exception e) {
    e.printStackTrace();
    }

    The output for Current Date shows "2006-08-30", but the parse, parsing
    the same date fails with an Unparseable date exception:

    Here's the output from this program.
    Current Date: 2006-08-30
    now parsing current date
    java.text.ParseException: Unparseable date: "2006-08-30"
    at java.text.DateFormat.parse(DateFormat.java:347)
    at DateFormatTester.main(DateFormatTester.java:24)
    , Aug 30, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Haim Ashkenazi

    GUI toolkits, bidi, and i18n question

    Haim Ashkenazi, May 6, 2004, in forum: Python
    Replies:
    0
    Views:
    350
    Haim Ashkenazi
    May 6, 2004
  2. Replies:
    7
    Views:
    1,074
  3. Replies:
    5
    Views:
    289
    Kaz Kylheku
    Apr 12, 2006
  4. Alder Green
    Replies:
    22
    Views:
    256
    Matt Lawrence
    Oct 25, 2006
  5. ChadW

    scrollLeft and bidi languages

    ChadW, Aug 9, 2007, in forum: Javascript
    Replies:
    2
    Views:
    106
Loading...

Share This Page