Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!rocky8!rocky5.rockefeller.edu!obrien From: obrien@rocky5.rockefeller.edu.rockefeller.edu (Tom O'Brien) Newsgroups: comp.sys.mac.hypercard Subject: Re: searching by dates in HC Summary: Use "convert to seconds" Message-ID: <217@rocky8.rockefeller.edu> Date: 25 Oct 88 22:25:22 GMT References: <10580@dartvax.Dartmouth.EDU> Sender: notes@rocky8.rockefeller.edu Reply-To: obrien@rocky5.rockefeller.edu.UUCP (Tom O'Brien) Distribution: comp.sys.mac.hypercard Organization: Rockefeller Univ.,N.Y.C 10021 Lines: 17 In article <10580@dartvax.Dartmouth.EDU> boz@eleazar.dartmouth.edu (John Boswell) writes: [if statement that compares date strings like "10/24/88" with < and >] > > Now, I *really* didn't expect this to work, as what is in the >startDate, endDate and orderDate containers is a string, and not a >number. However, I can't figure out how to convert more than a >character to a number. Can anyone help me implement something like >the "if" routine above? (It's getting close to the end of the month >*smile*). > What you need is "convert", as in "convert myDate to seconds". If you do this to all of the dates in question, you can compare them easily with < and >, since they'll just be big integers (seconds since 1/1/1904, probably). Tom O'Brien Rockefeller University Computing Services obrien@rocky5.rockefeller.edu NYC