Results 1 to 6 of 6

Thread: help please...

  1. #1
    agenteleven is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Default help please...

    Hello!

    I'm having a trouble creating an application that includes date in it.. the purpose would be how to create an application that can determine a menstrual cycle. when i input the "last date of menstrual period" and "average period" it would eventually compute the next date of the menstrual cycle. can anyone help me?

    Thanks...

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

    Default

    Sure we can.

    Show us what you have and all compiler/error messages it is producing, as well as describing what is happening that should not be, or is not happening that should be.

  3. #3
    agenteleven is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Talking

    hello..thanks..

    the only problem is the date..

    i don't know what to code. The program would run as when the average period would be input, then automatically, the program would count the number of days.

    for example:

    Last day of menstrual period(mmddyyy):
    10012008
    Average number of days: 28
    (The output would be:) 10292008


    That's the next date of the menstrual cycle...
    The problem is, i don't know how to code of retrieving the date automatically...

    thanks..:confused:

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

    Default

    Use the Calendar class and it's add, setTime, and getTime methods.
    Last edited by masijade; 10-07-2008 at 10:56 AM.

  5. #5
    agenteleven is offline Member
    Join Date
    Oct 2008
    Posts
    8
    Rep Power
    0

    Default

    can you teach me how to call the class and can you also give me an example? thanks

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

Posting Permissions

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