+ Reply to Thread
Results 1 to 2 of 2

Thread: Date definitions in files

  1. #1
    gary.shipp@s3t.co.uk Guest

    Default Date definitions in files

    What is the general approach taken to defining dates in files? Should they be held as numerics of appropriate length and then manipulated within the application, or, safe is the wrong word to use, but ok to define them as DATFMT within the physical file? We do have issues with legacy applications that make our decision more difficult, but were considering making the jump to date format fields in new projects. Is this common practise or not? Thanks

  2. #2
    Guest.Visitor Guest

    Default Date definitions in files

    After a year or so of making the same decision, we opt to make the fields for DATES & TIMES native datfmt/timfmt data types. A couple of reasons why: #1: sorting by date/time becomes automatically available rather than having to manipulate the date into a YMD format as the way the system stores dates irregardless of format. #2: invalid dates cannot be populated to the database -- the OS just won't let this happen - same as if using a input field as a DATE data type on a DSPF -- no editing needed, if invalid, the system catches the entry. We prefer to use *ISO, but any of the format(s) could be used -- and they ALL take the same amount of space irregardless of format. HTH - Lee.

+ Reply to Thread

Similar Threads

  1. Date definitions in files
    By Guest.Visitor in forum Shooting the Breeze
    Replies: 9
    Last Post: 08-24-2004, 08:59 AM
  2. Selecting Spool Files by Date/TIme ??
    By Guest.Visitor in forum Document Management
    Replies: 11
    Last Post: 11-21-2002, 05:42 AM
  3. Parameter definitions
    By Guest.Visitor in forum Programming
    Replies: 8
    Last Post: 07-17-2000, 01:21 AM
  4. Date Data Types in Display Files
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 01-31-1999, 04:04 AM
  5. S/36 query definitions
    By T.Holt in forum Hardware
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts