ibm-information-center/dist/eclipse/plugins/i5OS.ic.nls_5.4.0.1/rbagsdateformats.htm

72 lines
4.2 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Date formats" />
<meta name="abstract" content="There is no worldwide standard for the presentation of dates. Therefore, the date format should always be stored externally as part of the textual data." />
<meta name="description" content="There is no worldwide standard for the presentation of dates. Therefore, the date format should always be stored externally as part of the textual data." />
<meta name="DC.Relation" scheme="URI" content="rbagscultconvappdesign.htm" />
<meta name="DC.Relation" scheme="URI" content="rbagsqsetjobatruse.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzakb/rzakbmsttddatfm.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbagsdateformats" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Date formats</title>
</head>
<body id="rbagsdateformats"><a name="rbagsdateformats"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Date formats</h1>
<div><p>There is no worldwide standard for the presentation of dates. Therefore,
the date format should always be stored externally as part of the textual
data.</p>
<p>The valid date formats on the operating system are:</p>
<ul><li>*MDY (Month, day, year)</li>
<li>*DMY (Day, month, year)</li>
<li>*YMD (Year, Month, Day)</li>
<li>*JUL (yy/ddd)</li>
<li>*ISO (YYYY-MM-DD)</li>
<li>*USA (MM/DD/YYYY)</li>
<li>*EUR (DD.MM.YYYY)</li>
<li>*JIS (YYYY-MM-DD)</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> Some operating system functions do not support
all of the previous date formats.</div>
<p>In database files, dates can be stored as:</p>
<ul><li>Normal numeric data fields</li>
<li>SAA<sup>®</sup> date
data-types</li>
</ul>
<p>When you store dates as numeric data, your application needs to specify
the format in which it is stored and presented.</p>
<p>When you store dates as data type DATE (L), you can specify the format
with the DDS keyword DATFMT on the database file. The date is shown in this
predefined format as character data, including the date separators.</p>
<p>If date sorting and other processing is needed, the date should be stored
in *ISO format (YYYY-MM-DD) and converted to another format during the input
and output operations. Write a high-level language routine to convert dates.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbagscultconvappdesign.htm" title="Different countries have different standards that must be taken into account when developing an NLS-enabled application. This culturally sensitive information must be placed outside the program the same way as the textual data is handled.">Cultural-dependent design</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbagsqsetjobatruse.htm" title="The set job attributes (QSETJOBATR) is used to set job attributes at job startup time.">Set job attributes (QSETJOBATR) system value</a></div>
<div><a href="../rzakb/rzakbmsttddatfm.htm">DATFMT</a></div>
</div>
</div>
</body>
</html>