Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Filemaker > Re: yyyymmdd da...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 8034 of 8323
Post > Topic >>

Re: yyyymmdd date format im****t

by Kevin Audleman <kevin.audleman@[EMAIL PROTECTED] > May 14, 2008 at 03:57 PM

On May 12, 2:22 pm, d-42 <db.****s...@[EMAIL PROTECTED]
> wrote:
> On May 12, 9:57 am, d.kinn...@[EMAIL PROTECTED]
 wrote:
>
> > I am in the process of moving a database from Access to Filemaker. One
> > field is giving me some problems working out the best way to handle
> > it. The date fields have the format of yyyymmdd with "99999999"
> > representing "forever" or "does not expire".
>
> > I can im****t the dates into the new data base with a calculation to
> > change to the fm date format BUT how can I handle the "forever" dates?
> > OR would it be best to define all of these as numbers with some kind
> > of calculation for input validation?
>
> 'Forever' is not a valid date, and 'magic numbers' that mean something
> special are generally bad design. The 'correct' way to handle it is
> with 2 fields. An number field acting like a boolean (true/false) for
> 'does not expire'.
>
> Alternatively you can define a text field, and have it store 'forever'
> or a date as text, but it doesn't really get you anywhere useful,
> because you will have to apply conversions to work with the date; e.g.
> to perform finds, etc.
>
> If you want 'forever' or a date to appear in a single 'place' on
> layouts, you just define an unstored text calc... if(doesnotexpire =
> 1,"forever", expirydatefield)
>
> -cheers,
> Dave

The steps I would take are

1. Im****t the date information from access to a TEXT field
2. Use a calculation to transfer all of the valid dates to a date
field (for non-expiring, either leave the date field blank or put
12/31/2099. NOTE: if you intend to do finds based on the expiration
date, and you want non-expiring records to be included, make sure you
do the latter)
3. Set a boolean like Dave suggested for the non-expiring

Cheers,
Kevin
 




 4 Posts in Topic:
yyyymmdd date format import
d.kinnard@[EMAIL PROTECTE  2008-05-12 09:57:36 
Re: yyyymmdd date format import
Martin Trautmann <t-us  2008-05-12 18:14:50 
Re: yyyymmdd date format import
d-42 <db.porsche@[EMAI  2008-05-12 14:22:41 
Re: yyyymmdd date format import
Kevin Audleman <kevin.  2008-05-14 15:57:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 16:15:03 CDT 2008.