Re: Standards question on edited fields
From: Judson McClendon (judmc_at_sunvaley0.com)
Date: 01/17/04
- Next message: Judson McClendon: "Re: Standards question on edited fields"
- Previous message: Judson McClendon: "Re: Standards question on edited fields"
- In reply to: Howard Brazee: "Re: Standards question on edited fields"
- Next in thread: LX-i: "Re: Standards question on edited fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 17 Jan 2004 17:11:29 GMT
"Howard Brazee" <howard@brazee.net> wrote:
>
> "Judson McClendon" <judmc@sunvaley0.com> wrote:
>
> > > 01 My-Date.
> > > 03 My-Day Pic 9(02).
> > > 03 My-Month Pic X(03).
> > > 03 My-Year Pic 9(04).
> >
> > Why would you store a date in such a way?
>
> It is a useful way to display. Almost. If the move to edited field had
> worked, it would have created an unambiguous date in the format that I had to
> use when I was a USAF pilot.
>
> So I suppose the trade off is between not having to do much conversion to
> display the date and between being in a form that is useful for date
> comparisons. The choice would depend upon business needs.
I would rather design for the possibility that you may need to sort or
make relative comparisons on the date at some point, and store it
internally as numeric YYYYMMDD, and convert on output, and input
if necessary. This is more storage efficient and more useful internally.
After some 70+ systems, I have found that it is far better to over design
a system than the reverse. Better to go to extra trouble than have a
design that is insufficiently flexible to support future needs. :-)
-- Judson McClendon judmc@sunvaley0.com (remove zero) Sun Valley Systems http://sunvaley.com "For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life."
- Next message: Judson McClendon: "Re: Standards question on edited fields"
- Previous message: Judson McClendon: "Re: Standards question on edited fields"
- In reply to: Howard Brazee: "Re: Standards question on edited fields"
- Next in thread: LX-i: "Re: Standards question on edited fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|