Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Cannot figure out how to code this...

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cannot figure out how to code this...

    Write a program that converts date formats from American Format: “September 10, 2012” to International Format; - such as "2012-September-10”.
    Im also confused as to if he is asking for the date input and then to reformat it into international, or to just take the american formatted date and convert it to international format.
    Any help would be much appreciated!!


  2. #2
    Member
    Join Date
    Mar 2011
    Posts
    66
    My Mood
    Relaxed
    Thanks
    12
    Thanked 4 Times in 4 Posts

    Default Re: Cannot figure out how to code this...

    I think the coding really depends on what "he" is asking for. I think you should ask for clarification from that person yourself but you could try programming them both ways for the extra practice. For example, you could write a program that takes a list of (or a) given date(s) and convert it. You could also try to write another that converts inputted dates.

  3. #3
    Junior Member psabbate's Avatar
    Join Date
    Aug 2012
    Posts
    20
    My Mood
    Amused
    Thanks
    0
    Thanked 5 Times in 4 Posts

    Default Re: Cannot figure out how to code this...

    You can start reading some examples about SimpleDateFormat, In my opinion is the best way to do what you have to do ...
    Everyone wants to go to heaven ... but nobody wants to die

    Nissi Group, Servicios IT,
    Diseño Web, Desarrollo de Software, SEO,
    LinkedIn

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Cannot figure out how to code this...

    The first step in solving any problem is having a clear, well defined problem to solve. In this case it seems clear enough:

    Write a program

    converts date formats( from American Format: “September 10, 2012” )

    to International Format; - such as "2012-September-10”.

Similar Threads

  1. Cant figure out how to reset my code
    By charliechawk01 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 7th, 2012, 04:45 PM
  2. my code isn't working an i can't figure out why
    By jack13580 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 18th, 2011, 12:21 PM
  3. Studying for a test, can't figure out my code won't work
    By coolidge in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 27th, 2011, 01:12 PM
  4. I need help with my ohm's law applet code. can't figure it out!
    By dracula2001 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 19th, 2010, 06:16 PM
  5. Generation of Palindrome number in Java
    By tina.goyal in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 26th, 2009, 08:49 AM