<?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=NumToDate</id>
		<title>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=NumToDate"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=NumToDate&amp;action=history"/>
		<updated>2026-05-13T01:36:04Z</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=NumToDate&amp;diff=3149&amp;oldid=prev</id>
		<title>Jim: Initial Construction of page</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=NumToDate&amp;diff=3149&amp;oldid=prev"/>
				<updated>2010-12-07T18:17:08Z</updated>
		
		<summary type="html">&lt;p&gt;Initial Construction of page&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>Jim</name></author>	</entry>

	</feed>