<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fnumtodate</id>
		<title>IB Statements/numtodate - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fnumtodate"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/numtodate&amp;action=history"/>
		<updated>2026-04-18T20:21:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/numtodate&amp;diff=450&amp;oldid=prev</id>
		<title>Badge: New page: '''NUMTODATE function'''   '''Syntax:'''  NUMTODATE(numeric-argument)    '''Discussion:'''  The NUMTODATE function converts a date serial number to the corresponding date string.   The num...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/numtodate&amp;diff=450&amp;oldid=prev"/>
				<updated>2009-05-22T12:00:12Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;NUMTODATE function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  NUMTODATE(numeric-argument)    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The NUMTODATE function converts a date serial number to the corresponding date string.   The num...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''NUMTODATE function''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  NUMTODATE(numeric-argument)  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The NUMTODATE function converts a date serial number to the corresponding date string. &lt;br /&gt;
&lt;br /&gt;
The numeric-argument is a 6-digit value (variable or constant) that represents the number of days elapsed from a given base date. The base date is January 1, 1800. The greatest date covered by this function is December 31, 2299. The following chart demonstrates these values. &lt;br /&gt;
&lt;br /&gt;
  Date serial number   Date string    Notes&lt;br /&gt;
  ==================================================&lt;br /&gt;
         0             &amp;quot;01011800&amp;quot;     Base date&lt;br /&gt;
    182620             &amp;quot;12312299&amp;quot;     Maximum value&lt;br /&gt;
&lt;br /&gt;
This function returns an 8-byte date string in the following form: &amp;quot;MMDDYYYY&amp;quot; &lt;br /&gt;
If the value of the numeric-argument is less than 0 or greater than 182620, the DATETONUM function will return an 8-byte string containing the following values: &amp;quot;000000&amp;quot; &lt;br /&gt;
&lt;br /&gt;
The NUMTODATE function respects the rules for leap years (i.e., the years 1800 and 1900 were not leap years, but the year 2000 is a leap year). &lt;br /&gt;
&lt;br /&gt;
The DATETONUM function converts a date string to a date serial number. &lt;br /&gt;
&lt;br /&gt;
Also see DATE2NUM and NUM2DATE. &lt;br /&gt;
 &lt;br /&gt;
'''Example:'''&lt;br /&gt;
  LENGTH   8 &amp;amp; LOCAL VALUE$&lt;br /&gt;
  LENGTH 6.0 &amp;amp; LOCAL SERIAL&lt;br /&gt;
  . &lt;br /&gt;
  .&lt;br /&gt;
  .&lt;br /&gt;
  PRINT (0) &amp;quot;ENTER A DATE SERIAL NUMBER (######):&amp;quot;&lt;br /&gt;
  INPUT (0) SERIAL&lt;br /&gt;
  IF SERIAL = 0 THEN RUN &amp;quot;QMONITOR&amp;quot;&lt;br /&gt;
  VALUE$ = NUMTODATE(SERIAL)&lt;br /&gt;
  PRINT (0) &amp;quot;THE DATE STRING IS:&amp;quot;;VALUE$&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>