🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2936

Re: how could we add two date or to work on date

#2936
From: Alan
Date: Sat, 27 Feb 1999 00:00
28 lines
1589 bytes
Do you really want a combo box with 180 items in??????/

Cast each date to a long added them together and cast the resulting long
back to a date should work fine.

or cast a date to a long and then increment it



marco wrote in message <7b64f3$go4$1@front7.grolier.fr>...
>Hello ! ! ! !
>
>I have a problem trying to programm an applet java i need to put a combobox
>in which a user can select a date ;
>In that combobox i�d like to fill it with the dates from the actual date
>untill the date 180 days later(180 different date) .
>I have tried to work with the date class but it doesn�t give me any method
>To add two date or to incremente one date. i have tried to work with
another
>class grerorianCalendar but it doesn�t seem to give any good result cause
no
>method inside that enable me to add two date .
>If anyone can give me  any help i would appreciate.
>   Thanks ! ! ! !
>
>
>
>
Technical Details
Message-ID: <7b8e72$1nu$1@news8.svr.pol.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7b64f3$go4$1@front7.grolier.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,aed329d48c2e3078
X-Google-Attributes: gid1089d0,public
From: "Alan" <alan@ekat.freeserve.co.uk>
Subject: Re: how could we add two date or to work on date
Date: 1999/02/27
Message-ID: <7b8e72$1nu$1@news8.svr.pol.co.uk>
X-Deja-AN: 449223676
References: <7b64f3$go4$1@front7.grolier.fr>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@theplanet.net
X-Trace: news8.svr.pol.co.uk 920108066 1790 62.136.43.134 (27 Feb 1999 09:34:26 GMT)
Organization: Customer of Planet Online
NNTP-Posting-Date: 27 Feb 1999 09:34:26 GMT
Newsgroups: borland.public.jbuilder.java.api