Results 1 to 3 of 3

Thread: parsing date

  1. #1
    jackjosh_in is offline Member
    Join Date
    May 2010
    Posts
    5
    Rep Power
    0

    Default parsing date

    import java.text.SimpleDateFormat;

    String dd = "2006-10-20T1350"

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HHmm");
    Date now = new Date();

    sdf.format( dd );

    Iam getting problem with above code
    pls tell me how to parse date

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,531
    Blog Entries
    7
    Rep Power
    20

    Default

    Don't double post; I answered your question already in your other thread.

    kind regards,

    Jos

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. want the first date and last date of each month
    By javastuden in forum New To Java
    Replies: 3
    Last Post: 02-24-2010, 10:31 AM
  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. Compare date input to database with current date
    By hungleon88 in forum Advanced Java
    Replies: 2
    Last Post: 11-25-2008, 08:10 AM
  4. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 08:32 PM
  5. Difference between current date and anothe date
    By vijay balusamy in forum New To Java
    Replies: 1
    Last Post: 04-16-2008, 04:15 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
  •