1 Reply Latest reply on Feb 23, 2012 10:53 AM by philmodjunk

    Date + Time vs. Timestamp



      Date + Time vs. Timestamp


      New FileMaker user here with a quick question. If I inderstand correctly, it is wise to add record creation and record last modified dates or timestamps as fields in each table. What option, then, should I choose? Is there any reason to simply pick date instead of a full blown timestamp?

      Please give examples of each if possible. As one who is new to database design, I want to do it right from the start. To me it seems like choosing Timestamp is logical because there must be a way to display just the date or time (i.e. separate out the two) should I decide to display the field on a layout.

        • 1. Re: Date + Time vs. Timestamp

          It's good practice to add at least a date modified field to your records, but hardly a requirement. I suggest that you consider your design and ask yourself:

          Is it important to know the time the record was last modified?

          Is it important to know the date it was laste modified?

          Is it important to know that it WAS modified?

          Is it important to know WHO modified it last?

          As you answer such questions, it should become pretty easy to decide what fields of this type you'll need.

          Case in point:

          We have an invoicing system here where I work. Each invoice is created and within minutes it is printed. Such invoices are never modified after printing except to void one in order to issue a new one to correct an error. Thus, none of the "modify" auto-enter field options are useful. But we do want to know who created the invoice and when (date and time ) it was printed. Thus we have fields and scripts to record that info in our invoices table.

          And if you later change your mind as your understanding of database design and the needs of your project changes, it's a simple matter to add such fields in at that point.