Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!chsun!hslrswi!oregon!dbrunner
From: dbrunner@hslrswi.hasler.ascom.ch (Dierk Brunner)
Subject: Re: String conversion to Date
Message-ID: <1994Oct10.181524.12194@hasler.ascom.ch>
Sender: news@hasler.ascom.ch
Reply-To: dbrunner@hslrswi.hasler.ascom.ch
Organization: Ascom Hasler AG
References: <Cx7BE6.3z6@cs.utwente.nl>
Date: Mon, 10 Oct 1994 18:15:24 GMT
Lines: 26

In article 3z6@cs.utwente.nl, peper@cs.utwente.nl (Christian J.C.A. Peper) writes:
>Hi,
>
>I'm trying to implement a prototype of an Aircraft Maintanence IS in
>Smalltalk and need to convert a string to an instance of date. I can't find
>it anywhere in the system hierarchy and I think I'm not the first one to
>need this.
>[...]

If you are using ParcPlace Smalltalk try something like this to get Date instances:

	Date readFrom: 'April 5, 1982' readStream

And if you want to have Time instances:

	Time readFrom: '2:23:09 pm' readStream


	Dierk


-------------------------------------------------------
Dierk Brunner / NVEK3, Ascom Hasler AG, Belpstrasse 37,
     CH-3000 Bern 14, Switzerland, +41 31 999 2063
-------------------------------------------------------

