🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18970

Re: How to parse "strange" date formats?

#18970
From: Andrew Bennett [ Borland ]
Date: Wed, 01 Apr 1998 00:00
29 lines
1504 bytes
Bryce McKinlay wrote:
> 
> I need to be able to parse dates in the form '980331', where the first
> two chars are the year, second two the month, and so on. I figured I
> could  probibly do this using by converting the chars to integers and
> using the:
> 
> public Date(int year, int month, int date);
> 
> constructor of the date class (after tweaking the values to be in line
> with  what the Date class expects), but this method is deprecated in
> JDK 1.1.x!!

See java.util.Calendar's set(int int int) function.



Andrew
--
  Andrew Bennett
  abennett@borland.com

  Due to my workload, personal email more than likely won't get a reply.
  Support options are detailed at http://www.borland.com/devsupport/
  I am unable to answer support questions via email at this time.

  Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
  additional JBuilder support related help.
Technical Details
Message-ID: <3522CDC3.896910DA@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35208337.1655452354@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,65f118277b3cc2db
X-Google-Attributes: gidf74b3,public
From: "Andrew Bennett [ Borland ]" <abennett@borland.com>
Subject: Re: How to parse "strange" date formats?
Date: 1998/04/01
Message-ID: <3522CDC3.896910DA@borland.com>
X-Deja-AN: 339994765
Content-Transfer-Encoding: 7bit
References: <35208337.1655452354@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Borland JBuilder -- http://www.borland.com/jbuilder/
Newsgroups: borland.public.jbuilder.java.language