DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Thread: java Date

  1. #1
    styles Guest

    java Date


    Can anyone help me how to write a java function that returns the date of any
    day a week or 2 ahead of the current date/day.Thanks in advance.

    styles.

  2. #2
    Paul Clapham Guest

    Re: java Date

    GregorianCalendar g = new GregorianCalendar() // g = NOW
    g.add(Calendar.DATE, 7) // adds 7 days

    and like that.

    PC2

    "styles" <masterp@juventusfan.com> wrote in message
    news:3ad4228c$1@news.devx.com...
    >
    > Can anyone help me how to write a java function that returns the date of

    any
    > day a week or 2 ahead of the current date/day.Thanks in advance.
    >
    > styles.




  3. #3
    styles Guest

    Re: java Date


    Thank you so much Paul Clapham.
    styles.


    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >GregorianCalendar g = new GregorianCalendar() // g = NOW
    >g.add(Calendar.DATE, 7) // adds 7 days
    >
    >and like that.
    >
    >PC2
    >
    >"styles" <masterp@juventusfan.com> wrote in message
    >news:3ad4228c$1@news.devx.com...
    >>
    >> Can anyone help me how to write a java function that returns the date

    of
    >any
    >> day a week or 2 ahead of the current date/day.Thanks in advance.
    >>
    >> styles.

    >
    >



  4. #4
    stylishly Guest

    Re: java Date


    "styles" <masterp@juventusfan.com> wrote:
    >
    >Can anyone help me how to write a java function that returns the date of

    any
    >day a week or 2 ahead of the current date/day.Thanks in advance.
    >
    >styles.



    I have got absolute no idea
    as I am still messing about the database connection
    some sample prog can deal with every type
    except date

    my problem, + your problem make us nuts

    you are very welcome


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links