Article View: borland.public.jbuilder.java.language
Article #19142Re: Date type to/from string
From: Conrad Hoesle-Kienzlen
Date: Tue, 10 Mar 1998 00:00
Date: Tue, 10 Mar 1998 00:00
24 lines
1613 bytes
1613 bytes
Tad, any reason why you don't want to use serialization? ...Conrad Tad Frysinger wrote: > I need to stringify a Java Date type, and then create a date type from > that string. The toString() method in the Date class has not been > deprecated so this seems to be the most straightforward way to get a > string, but parse() seems to now be deprecated. Yet I see nothing else > in either Date or Calendar/GregorianCalendar to create a date from the > result of toString() (or from any other string, for that matter). What > is the best way to do this? > > What I am trying to do is to come up with a good general way to transmit > Java data types across process boundaries using the three most common > standards (RMI, CORBA, DCOM). The way I've chosen for now is resource > expensive, but at least it will work: I am going to translate all Java > data types I intend to support to encoded strings, pass the string, then > assemble them again on the other side. Thus, I just need a convenient > way to create a Date data type from a string. > > Tad
Technical Details
Message-ID:
<35059639.B429F072@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.f6f3422293a76d09897c7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,97ec465ac7d926cb X-Google-Attributes: gidf74b3,public From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com> Subject: Re: Date type to/from string Date: 1998/03/10 Message-ID: <35059639.B429F072@csi.com> X-Deja-AN: 332713709 Content-Transfer-Encoding: 7bit References: <MPG.f6f3422293a76d09897c7@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: CHK IT-Consulting Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language