Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2010
    Posts
    22
    Rep Power
    0

    Default Cannot convert '20100101' to date(format = yyyyMMdd)

    Hi,
    Please advice how to rectify from this problem.


    Cannot convert '20100101' to date(format = yyyyMMdd)


    I am getting the input as YYYYMMDD and I need to map it to other date type element, but I am getting the above error. Please advice.


    Thanks..

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    That looks like your own error message. The code in that area would help, as would adding an actual stacktrace output to the catch block you're using.

  3. #3
    Join Date
    Sep 2010
    Posts
    22
    Rep Power
    0

    Default

    HI..
    Converting from string to date or from yyyMMdd to YYYYMMDD format.

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Uhm, yo no se, yo no se.

    I have no idea what that reply was for. If you don't wish to show your code, or the actual exception, I cannot help you.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default

    That date format works with that date string, creating a correct Date object.

    So, as already said, without your code and a proper error message with stack trace we cannot help. All we can say is "you're doing something wrong, so fix it."

Similar Threads

  1. convert String date to Date
    By computerbum in forum New To Java
    Replies: 7
    Last Post: 09-18-2010, 03:26 PM
  2. julian date to full date format
    By judy318 in forum New To Java
    Replies: 7
    Last Post: 11-02-2009, 12:17 PM
  3. how to convert one format to another format
    By mahipal_reddy621 in forum New To Java
    Replies: 1
    Last Post: 12-02-2008, 10:21 AM
  4. Date Format
    By learnspring in forum New To Java
    Replies: 1
    Last Post: 11-16-2008, 05:16 PM
  5. how to convert date format
    By saran123 in forum New To Java
    Replies: 5
    Last Post: 10-16-2008, 06:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •