× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Date *HIVAL was Urgent!!! NULLS & ZEROS
  • From: Jon.Paris@xxxxxxxxxx
  • Date: Tue, 21 Dec 1999 11:45:44 -0500



 >> Nothing wrong with numeric dates.

Well there's one very obvious problem.  There's no way to ensure that you won't
get an invalid date stored in your database if you are using numerics.  For
instance 00/00/00 <grin>

 >> Why create a new data type?

Its hardly new - its been around for a long time.  The main reason for it of
course is that dates _are_ different.  They are not numbers and they are not
character strings - they are dates! In a price or quantity field, any
combination of digits is valid.  Not so in a date.  Lets turn the question round
- why on earth would you _want_ to assume responsibility for the integrity of
values in your "dates" ??

Personally I think the performance "issue" is horse hockey.  If your system
depends on dates then the added security of _knowing_ they are always valid can
save you far more than it costs.  Ask Doug Pence and Ron Hawkins, or read the
stuff they wrote for Midrange on dates.  It remains the _only_ common sense
information I have ever seen published on the use of date fields.


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.