﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="book" content="ActionScript&nbsp;3.0&nbsp;Language&nbsp;and&nbsp;Components&nbsp;Reference"><link rel="stylesheet" href="style.css" type="text/css" media="screen"><link rel="stylesheet" href="print.css" type="text/css" media="print"><link rel="stylesheet" href="override.css" type="text/css"><meta name="keywords" content="Date,globalClassifier.Date,-Infinity,CASEINSENSITIVE,DESCENDING,E,Infinity,LN10,LN2,LOG10E,LOG2E,MAX_VALUE,MAX_VALUE,MAX_VALUE,MIN_VALUE,MIN_VALUE,MIN_VALUE,NEGATIVE_INFINITY,NUMERIC,NaN,NaN,PI,POSITIVE_INFINITY,RETURNINDEXEDARRAY,SQRT1_2,SQRT2,UNIQUESORT,callee,constructor,date,dateUTC,day,dayUTC,dotall,errorID,extended,fixed,fullYear,fullYearUTC,global,hours,hoursUTC,ignoreCase,ignoreComments,ignoreProcessingInstructions,ignoreWhitespace,lastIndex,length,length,length,length,localName,message,milliseconds,millisecondsUTC,minutes,minutesUTC,month,monthUTC,multiline,name,prefix,prettyIndent,prettyPrinting,prototype,seconds,secondsUTC,source,time,timezoneOffset,undefined,uri,uri,Array,Boolean,Number,Object,String,UTC,Vector,XML,XMLList,abs,acos,addNamespace,appendChild,apply,asin,atan2,atan,attribute,attribute,attributes,attributes,call,ceil,charAt,charCodeAt,child,childIndex,child,children,children,comments,comments,concat,concat,concat,contains,contains,copy,copy,cos,decodeURIComponent,decodeURI,defaultSettings,descendants,descendants,elements,elements,encodeURIComponent,encodeURI,escape,every,every,exec,exp,filter,filter,floor,forEach,forEach,fromCharCode,getDate,getDay,getFullYear,getHours,getMilliseconds,getMinutes,getMonth,getSeconds,getStackTrace,getTime,getTimezoneOffset,getUTCDate,getUTCDay,getUTCFullYear,getUTCHours,getUTCMilliseconds,getUTCMinutes,getUTCMonth,getUTCSeconds,hasComplexContent,hasComplexContent,hasOwnProperty,hasOwnProperty,hasOwnProperty,hasSimpleContent,hasSimpleContent,inScopeNamespaces,indexOf,indexOf,indexOf,insertChildAfter,insertChildBefore,int,isFinite,isNaN,isPrototypeOf,isXMLName,join,join,lastIndexOf,lastIndexOf,lastIndexOf,length,length,localName,localeCompare,log,map,map,match,max,min,name,namespaceDeclarations,namespace,nodeKind,normalize,normalize,parent,parent,parse,parseFloat,parseInt,pop,pop,pow,prependChild,processingInstructions,processingInstructions,propertyIsEnumerable,propertyIsEnumerable,propertyIsEnumerable,push,push,random,removeNamespace,replace,replace,reverse,reverse,round,search,setChildren,setDate,setFullYear,setHours,setLocalName,setMilliseconds,setMinutes,setMonth,setName,setNamespace,setPropertyIsEnumerable,setSeconds,setSettings,setTime,setUTCDate,setUTCFullYear,setUTCHours,setUTCMilliseconds,setUTCMinutes,setUTCMonth,setUTCSeconds,settings,shift,shift,sin,slice,slice,slice,some,some,sortOn,sort,sort,splice,splice,split,sqrt,substr,substring,tan,test,text,text,toDateString,toExponential,toExponential,toExponential,toFixed,toFixed,toFixed,toLocaleDateString,toLocaleLowerCase,toLocaleString,toLocaleString,toLocaleString,toLocaleTimeString,toLocaleUpperCase,toLowerCase,toPrecision,toPrecision,toPrecision,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toTimeString,toUTCString,toUpperCase,toXMLString,toXMLString,trace,uint,unescape,unshift,unshift,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf"><title>Date (ActionScript 3.0)</title><script src="AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="asdoc.js"></script><script language="javascript" type="text/javascript" src="help.js"></script><script language="javascript" type="text/javascript" src="cookies.js"></script><script language="javascript" type="text/javascript">  
            <!--  
			    
				asdocTitle = 'Date - ActionScript 3.0 Language and Components Reference';

				var baseRef = '';

				window.onload = configPage;
			      
			    -->  
            </script>
<script language="javascript" type="text/javascript"><!--
function submitValue(){
var searchStr=document.getElementById('search-livedocs').value;
window.location="search.html"+"###"+searchStr;
}
--></script><script type="text/javascript">
		scrollToNameAnchor();
	</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">ActionScript 3.0 Language and Components Reference</td><td class="titleTableSearch" align="center"><form class="searchForm" method="get" action="search.html" onsubmit="submitValue();"><input class="hidden" name="loc" value="" type="hidden"><input class="hidden" name="termPrefix" value="" type="hidden"><input class="hidden" name="term" value="" type="hidden"><input class="hidden" name="area" value="" type="hidden"><input id="search-livedocs" name="search_text" value="" title="" type="text"> <input type="button" name="action" value="Search" onclick="submitValue()"></form></td><td class="titleTableTopNav" align="right"><a href="../../Flash/10.0_Welcome/index.html">Home</a>&nbsp;|&nbsp;<a href="package-summary.html" onclick="loadClassListFrame('all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="class-summary.html" onclick="loadClassListFrame('all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="language-elements.html">Language Elements</a>&nbsp;| <a href="all-index-Symbols.html" onclick="loadClassListFrame('index-list.html')">Index</a>&nbsp;|&nbsp;<a href="appendixes.html">Appendixes</a>&nbsp;|&nbsp;<a href="conventions.html">Conventions</a>&nbsp;|&nbsp;<a id="framesLink1" href="index.html?Date.html&amp;">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="images/logo.jpg" class="logoImage" alt=" Adobe Logo " title=" Adobe Logo "></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">Date</td><td class="titleTableSubNav" id="subNav" align="right" colspan="2"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#styleSummary">Styles</a>&nbsp;| <a href="#effectSummary">Effects</a>&nbsp;| <a href="#constantSummary">Constants</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
                
                    
                

				<!--

				
				    
				

					if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Date"); titleBar_setSubNav(false,true,false	,false,false,false,true,true,false	,false,false,false,false,false);}

				    
				        
				    
				-->
                
                    
                
			</script><div class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">Top Level</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public final  dynamic   class  Date</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Date  <img src="images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="Object.html">Object</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p></p>
        The Date class represents date and time information. An instance of the Date class represents a particular point 
 in time for which the properties such as month, day, hours, and seconds can be queried or modified. The Date 
 class lets you retrieve date and time values relative to universal time (Greenwich mean time, now called universal 
 time or UTC) or relative to local time, which is determined by the local time zone setting on the operating system 
 that is running Flash Player. The methods of the Date class are not static but apply only to the individual Date 
 object specified when the method is called. The
        <code>Date.UTC()</code>
        and
        <code>Date.parse()</code>
        methods are 
 exceptions; they are static methods.
        <p>The Date class handles daylight saving time differently, depending on the operating system and 
 Flash Player version. Flash Player 6 and later versions handle daylight saving time on the following operating 
 systems in these ways:</p>
        
               <ul>
                  <li>Windows - the Date object automatically adjusts its output for daylight saving time. The Date object detects 
 whether daylight saving time is employed in the current locale, and if so, it detects the standard-to-daylight 
 saving time transition date and times. However, the transition dates currently in effect are applied to dates in 
 the past and the future, so the daylight saving time bias might calculate incorrectly for dates in the past when 
 the locale had different transition dates.</li>
                  <li>Mac OS X - the Date object automatically adjusts its output for daylight saving time. The time zone information 
 database in Mac OS X is used to determine whether any date or time in the present or past should have a daylight 
 saving time bias applied.</li>
                  <li>Mac OS 9 - the operating system provides only enough information to determine whether the current date and 
 time should have a daylight saving time bias applied. Accordingly, the date object assumes that the current 
 daylight saving time bias applies to all dates and times in the past or future.</li>
               </ul>
        
               <p>Flash Player 5 handles daylight saving time on the following operating systems as follows:</p>
        
               <ul>
                  <li>Windows - the U.S. rules for daylight saving time are always applied, which leads to incorrect transitions 
 in Europe and other areas that employ daylight saving time but have different transition times than the U.S. Flash 
 correctly detects whether daylight saving time is used in the current locale.</li>
               </ul>
        
               <p>
          To use the Date class, construct a Date instance using the
          <code>new</code>
          operator.
        </p>
        
               <p>
          ActionScript 3.0 adds several new accessor properties that can be used in place of many Date class methods 
 that access or modify Date instances. ActionScript 3.0 also includes several new variations of the
          <code>toString()</code>
          method that are included for ECMA-262 3rd Edition compliance, including:
          <code>Date.toLocaleString()</code>
          ,
          <code>Date.toTimeString()</code>
          ,
          <code>Date.toLocaleTimeString()</code>
          ,
          <code>Date.toDateString()</code>
          , and
          <code>Date.toLocaleDateString()</code>
          .
        </p>
        
               <p>
          To compute relative time or time elapsed, see the
          <code>getTimer()</code>
          method in the flash.utils package.
        </p>
        
            <p></p><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="flash/utils/package.html#getTimer()" target="">flash.utils.getTimer()</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th>Defined By</th></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="Object.html#constructor" class="signatureLink">constructor</a> : <a href="Object.html">Object</a><div class="summaryTableDescription">A reference to the class object or constructor function for a given object instance.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#date" class="signatureLink">date</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The day of the month (an integer from 1 to 31) specified by a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#dateUTC" class="signatureLink">dateUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The day of the month (an integer from 1 to 31) of a Date object 
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#day" class="signatureLink">day</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">[read-only] The day of the week (0 for Sunday, 1 for Monday, and so on) specified by this
  Date according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#dayUTC" class="signatureLink">dayUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">[read-only] The day of the week (0 for Sunday, 1 for Monday, and so on) of this Date
   according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#fullYear" class="signatureLink">fullYear</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The full year (a four-digit number, such as 2000) of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#fullYearUTC" class="signatureLink">fullYearUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The four-digit year of a Date object according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#hours" class="signatureLink">hours</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The hour (an integer from 0 to 23) of the day portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#hoursUTC" class="signatureLink">hoursUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The hour (an integer from 0 to 23) of the day of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#milliseconds" class="signatureLink">milliseconds</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The milliseconds (an integer from 0 to 999) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#millisecondsUTC" class="signatureLink">millisecondsUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The milliseconds (an integer from 0 to 999) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#minutes" class="signatureLink">minutes</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The minutes (an integer from 0 to 59) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#minutesUTC" class="signatureLink">minutesUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The minutes (an integer from 0 to 59) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#month" class="signatureLink">month</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The month (0 for January, 1 for February, and so on) portion of a 
  Date object according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#monthUTC" class="signatureLink">monthUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The month (0 [January] to 11 [December]) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="Object.html#prototype" class="signatureLink">prototype</a> : <a href="Object.html">Object</a><div class="summaryTableDescription">[static] A reference to the prototype object of a class or function object.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#seconds" class="signatureLink">seconds</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The seconds (an integer from 0 to 59) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#secondsUTC" class="signatureLink">secondsUTC</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The seconds (an integer from 0 to 59) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#time" class="signatureLink">time</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">The number of milliseconds since midnight January 1, 1970, universal time, 
  for a Date object.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#timezoneOffset" class="signatureLink">timezoneOffset</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">[read-only] The difference, in minutes, between universal time (UTC) and the computer's local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#Date()" class="signatureLink">Date</a>(yearOrTimevalue:<a href="Object.html">Object</a>, month:<a href="Number.html">Number</a>, date:<a href="Number.html">Number</a> = 1, hour:<a href="Number.html">Number</a> = 0, minute:<a href="Number.html">Number</a> = 0, second:<a href="Number.html">Number</a> = 0, millisecond:<a href="Number.html">Number</a> = 0)</div><div class="summaryTableDescription">Constructs a new Date object that holds the specified date and time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getDate()" class="signatureLink">getDate</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the day of the month (an integer from 1 to 31) specified by a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getDay()" class="signatureLink">getDay</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the day of the week (0 for Sunday, 1 for Monday, and so on) specified by this
  Date according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getFullYear()" class="signatureLink">getFullYear</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the full year (a four-digit number, such as 2000) of a Date object 
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getHours()" class="signatureLink">getHours</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the hour (an integer from 0 to 23) of the day portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getMilliseconds()" class="signatureLink">getMilliseconds</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the milliseconds (an integer from 0 to 999) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getMinutes()" class="signatureLink">getMinutes</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the minutes (an integer from 0 to 59) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getMonth()" class="signatureLink">getMonth</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the month (0 for January, 1 for February, and so on) portion of this 
  Date according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getSeconds()" class="signatureLink">getSeconds</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the seconds (an integer from 0 to 59) portion of a Date object
  according to local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getTime()" class="signatureLink">getTime</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the number of milliseconds since midnight January 1, 1970, universal time, 
  for a Date object.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getTimezoneOffset()" class="signatureLink">getTimezoneOffset</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the difference, in minutes, between universal 
     time (UTC) and the computer's local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCDate()" class="signatureLink">getUTCDate</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the day of the month (an integer from 1 to 31) of a Date object, 
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCDay()" class="signatureLink">getUTCDay</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the day of the week (0 for Sunday, 1 for Monday, and so on) of this Date
   according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCFullYear()" class="signatureLink">getUTCFullYear</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the four-digit year of a Date object according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCHours()" class="signatureLink">getUTCHours</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the hour (an integer from 0 to 23) of the day of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCMilliseconds()" class="signatureLink">getUTCMilliseconds</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the milliseconds (an integer from 0 to 999) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCMinutes()" class="signatureLink">getUTCMinutes</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the minutes (an integer from 0 to 59) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCMonth()" class="signatureLink">getUTCMonth</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the month (0 [January] to 11 [December]) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getUTCSeconds()" class="signatureLink">getUTCSeconds</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the seconds (an integer from 0 to 59) portion of a Date object
  according to universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#hasOwnProperty()" class="signatureLink">hasOwnProperty</a>(name:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an object has a specified property defined.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#isPrototypeOf()" class="signatureLink">isPrototypeOf</a>(theClass:<a href="Object.html">Object</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an instance of the Object class is in the prototype chain of the object specified 
  as the parameter.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#parse()" class="signatureLink">parse</a>(date:<a href="String.html">String</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">[static] Converts a string representing a date into a number equaling the number of milliseconds 
  elapsed since January 1, 1970, UTC.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#propertyIsEnumerable()" class="signatureLink">propertyIsEnumerable</a>(name:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether the specified property exists and is enumerable.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setDate()" class="signatureLink">setDate</a>(day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the day of the month, according to local time, and returns the new time in 
  milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setFullYear()" class="signatureLink">setFullYear</a>(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the year, according to local time, and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setHours()" class="signatureLink">setHours</a>(hour:<a href="Number.html">Number</a>, minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the hour, according to local time, and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setMilliseconds()" class="signatureLink">setMilliseconds</a>(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the milliseconds, according to local time, and returns the new time in 
  milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setMinutes()" class="signatureLink">setMinutes</a>(minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the minutes, according to local time, and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setMonth()" class="signatureLink">setMonth</a>(month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the month and optionally the day of the month, according to local time, and 
  returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#setPropertyIsEnumerable()" class="signatureLink">setPropertyIsEnumerable</a>(name:<a href="String.html">String</a>, isEnum:<a href="Boolean.html">Boolean</a> = true):<a href="specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets the availability of a dynamic property for loop operations.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setSeconds()" class="signatureLink">setSeconds</a>(second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the seconds, according to local time, and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setTime()" class="signatureLink">setTime</a>(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the date in milliseconds since midnight on January 1, 1970, and returns the new 
  time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCDate()" class="signatureLink">setUTCDate</a>(day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the day of the month, in universal time (UTC), and returns the new time in 
  milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCFullYear()" class="signatureLink">setUTCFullYear</a>(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the year, in universal time (UTC), and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCHours()" class="signatureLink">setUTCHours</a>(hour:<a href="Number.html">Number</a>, minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the hour, in universal time (UTC), and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCMilliseconds()" class="signatureLink">setUTCMilliseconds</a>(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the milliseconds, in universal time (UTC), and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCMinutes()" class="signatureLink">setUTCMinutes</a>(minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the minutes, in universal time (UTC), and returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCMonth()" class="signatureLink">setUTCMonth</a>(month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the month, and optionally the day, in universal time(UTC) and returns the new 
  time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#setUTCSeconds()" class="signatureLink">setUTCSeconds</a>(second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></div><div class="summaryTableDescription">Sets the seconds, and optionally the milliseconds, in universal time (UTC) and 
  returns the new time in milliseconds.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toDateString()" class="signatureLink">toDateString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a string representation of the day and date only, and does not include the time or timezone.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toLocaleDateString()" class="signatureLink">toLocaleDateString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the day and date only, and does not include the time or timezone.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toLocaleString()" class="signatureLink">toLocaleString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the day, date, time, given in local time.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toLocaleTimeString()" class="signatureLink">toLocaleTimeString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the time only, and does not include the day, date, year, or timezone.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toString()" class="signatureLink">toString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the day, date, time, and timezone.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toTimeString()" class="signatureLink">toTimeString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the time and timezone only, and does not include the day and date.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#toUTCString()" class="signatureLink">toUTCString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns a String representation of the day, date, and time in universal time (UTC).</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#UTC()" class="signatureLink">UTC</a>(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, date:<a href="Number.html">Number</a> = 1, hour:<a href="Number.html">Number</a> = 0, minute:<a href="Number.html">Number</a> = 0, second:<a href="Number.html">Number</a> = 0, millisecond:<a href="Number.html">Number</a> = 0):<a href="Number.html">Number</a></div><div class="summaryTableDescription">[static] Returns the number of milliseconds between midnight on January 1, 1970, universal time, 
  and the time specified in the parameters.</div></td><td class="summaryTableOwnerCol">Date</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#valueOf()" class="signatureLink">valueOf</a>():<a href="Number.html">Number</a></div><div class="summaryTableDescription">Returns the number of milliseconds since midnight January 1, 1970, universal time, 
  for a Date object.</div></td><td class="summaryTableOwnerCol">Date</td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="date"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">date</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>date:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The day of the month (an integer from 1 to 31) specified by a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get date():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set date(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getDate()" target="">getDate()</a><br/><a href="Date.html#setDate()" target="">setDate()</a></div></div><a name="propertyDetail"></a><a name="dateUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">dateUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>dateUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The day of the month (an integer from 1 to 31) of a
          <code>Date</code>
          object 
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get dateUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set dateUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCDate()" target="">getUTCDate()</a><br/><a href="Date.html#setUTCDate()" target="">setUTCDate()</a></div></div><a name="propertyDetail"></a><a name="day"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">day</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>day:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The day of the week (0 for Sunday, 1 for Monday, and so on) specified by this
          <code>Date</code>
          according to local time. Local time is determined by the operating 
  system on which Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get day():<a href="Number.html">Number</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getDay()" target="">getDay()</a></div></div><a name="propertyDetail"></a><a name="dayUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">dayUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>dayUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The day of the week (0 for Sunday, 1 for Monday, and so on) of this
          <code>Date</code>
          according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get dayUTC():<a href="Number.html">Number</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCDay()" target="">getUTCDay()</a></div></div><a name="propertyDetail"></a><a name="fullYear"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">fullYear</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>fullYear:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The full year (a four-digit number, such as 2000) of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get fullYear():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set fullYear(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getFullYear()" target="">getFullYear()</a><br/><a href="Date.html#setFullYear()" target="">setFullYear()</a></div></div><a name="propertyDetail"></a><a name="fullYearUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">fullYearUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>fullYearUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The four-digit year of a
          <code>Date</code>
          object according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get fullYearUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set fullYearUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCFullYear()" target="">getUTCFullYear()</a><br/><a href="Date.html#setUTCFullYear()" target="">setUTCFullYear()</a></div></div><a name="propertyDetail"></a><a name="hours"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">hours</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>hours:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The hour (an integer from 0 to 23) of the day portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get hours():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set hours(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getHours()" target="">getHours()</a><br/><a href="Date.html#setHours()" target="">setHours()</a></div></div><a name="propertyDetail"></a><a name="hoursUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">hoursUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>hoursUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The hour (an integer from 0 to 23) of the day of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get hoursUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set hoursUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCHours()" target="">getUTCHours()</a><br/><a href="Date.html#setUTCHours()" target="">setUTCHours()</a></div></div><a name="propertyDetail"></a><a name="milliseconds"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">milliseconds</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>milliseconds:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The milliseconds (an integer from 0 to 999) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get milliseconds():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set milliseconds(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMilliseconds()" target="">getMilliseconds()</a><br/><a href="Date.html#setMilliseconds()" target="">setMilliseconds()</a></div></div><a name="propertyDetail"></a><a name="millisecondsUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">millisecondsUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>millisecondsUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The milliseconds (an integer from 0 to 999) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get millisecondsUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set millisecondsUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCMilliseconds()" target="">getUTCMilliseconds()</a><br/><a href="Date.html#setUTCMilliseconds()" target="">setUTCMilliseconds()</a></div></div><a name="propertyDetail"></a><a name="minutes"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">minutes</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>minutes:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The minutes (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get minutes():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set minutes(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMinutes()" target="">getMinutes()</a><br/><a href="Date.html#setMinutes()" target="">setMinutes()</a></div></div><a name="propertyDetail"></a><a name="minutesUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">minutesUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>minutesUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The minutes (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get minutesUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set minutesUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCMinutes()" target="">getUTCMinutes()</a><br/><a href="Date.html#setUTCMinutes()" target="">setUTCMinutes()</a></div></div><a name="propertyDetail"></a><a name="month"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">month</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>month:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The month (0 for January, 1 for February, and so on) portion of a
          <code>Date</code>
          object according to local time. Local time is determined by the operating system 
  on which Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get month():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set month(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMonth()" target="">getMonth()</a><br/><a href="Date.html#setMonth()" target="">setMonth()</a></div></div><a name="propertyDetail"></a><a name="monthUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">monthUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>monthUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The month (0 [January] to 11 [December]) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get monthUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set monthUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCMonth()" target="">getUTCMonth()</a><br/><a href="Date.html#setUTCMonth()" target="">setUTCMonth()</a></div></div><a name="propertyDetail"></a><a name="seconds"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">seconds</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>seconds:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The seconds (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get seconds():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set seconds(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getSeconds()" target="">getSeconds()</a><br/><a href="Date.html#setSeconds()" target="">setSeconds()</a></div></div><a name="propertyDetail"></a><a name="secondsUTC"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">secondsUTC</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>secondsUTC:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The seconds (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get secondsUTC():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set secondsUTC(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCSeconds()" target="">getUTCSeconds()</a><br/><a href="Date.html#setUTCSeconds()" target="">setUTCSeconds()</a></div></div><a name="propertyDetail"></a><a name="time"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">time</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>time:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          The number of milliseconds since midnight January 1, 1970, universal time, 
  for a
          <code>Date</code>
          object. Use this method to represent a specific instant in time 
  when comparing two or more
          <code>Date</code>
          objects.
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get time():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function set time(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getTime()" target="">getTime()</a><br/><a href="Date.html#setTime()" target="">setTime()</a></div></div><a name="propertyDetail"></a><a name="timezoneOffset"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">timezoneOffset</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>timezoneOffset:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>The difference, in minutes, between universal time (UTC) and the computer's local time. 
     Specifically, this value is the number of minutes you need to add to the computer's local
     time to equal UTC. If your computer's time is set later than UTC, the value will be negative.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;<a href="statements.html#AS3">AS3</a> function get timezoneOffset():<a href="Number.html">Number</a></code><br/><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getTimezoneOffset()" target="">getTimezoneOffset()</a></div></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="Date()"></a><a name="Date(Object,Number,Number,Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">Date</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function Date(yearOrTimevalue:<a href="Object.html">Object</a>, month:<a href="Number.html">Number</a>, date:<a href="Number.html">Number</a> = 1, hour:<a href="Number.html">Number</a> = 0, minute:<a href="Number.html">Number</a> = 0, second:<a href="Number.html">Number</a> = 0, millisecond:<a href="Number.html">Number</a> = 0)</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p>
          Constructs a new Date object that holds the specified date and time.
          <p>
            The
            <code>Date()</code>
            constructor takes up to seven parameters (year, month,  
  ..., millisecond) to specify a date and time to the millisecond. The date that
  the newly constructed Date object contains depends on the number, and data type, of arguments passed.
          </p>
          
          <ul><li>If you pass no arguments, the Date object is assigned the current date and time.</li><li>If you pass one argument of data type Number, the Date object is assigned a time value based on the number of milliseconds since January 1, 1970 0:00:000 GMT, as specified by the lone argument.</li><li>If you pass one argument of data type String, and the string contains a valid date, the Date object  contains a time value based on that date.</li><li>If you pass two or more arguments, the Date object is assigned a time value based on the argument values passed, which represent the date's year, month, date, hour, minute, second, and milliseconds.</li></ul>
          
          <p>
            If you pass a string to the Date class constructor, the date can be in a variety of formats, but must at least include the month, date, and year. For example,
            <code>Feb 1 2005</code>
            is valid, but
            <code>Feb 2005</code>
            is not. The following list indicates some of the valid formats:
          </p>
          
          <ul><li>
              Day Month Date Hours:Minutes:Seconds GMT Year (for instance, "Tue Feb 1 00:00:00 GMT-0800 2005", which matches
              <code>toString()</code>
              )
            </li><li>
              Day Month Date Year Hours:Minutes:Seconds AM/PM (for instance, "Tue Feb 1 2005 12:00:00 AM", which matches
              <code>toLocaleString()</code>
              )
            </li><li>
              Day Month Date Year (for instance, "Tue Feb 1 2005", which matches
              <code>toDateString()</code>
              )
            </li><li>Month/Day/Year (for instance, "02/01/2005")</li><li>Month/Year (for instance, "02/2005")</li></ul>
          
        </p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">yearOrTimevalue</span>:<a href="Object.html">Object</a></code> &mdash; 
              If other parameters are specified, this number represents a 
  year (such as 1965); otherwise, it represents a time value. If the number represents a year, a 
  value of 0 to 99 indicates 1900 through 1999; otherwise all four digits of the year must be 
  specified. If the number represents a time value (no other parameters are specified), it is the
  number of milliseconds before or after 0:00:00 GMT January 1, 1970; a negative values represents  
  a time
              <i>before</i>
              0:00:00 GMT January 1, 1970, and a positive value represents a time after.
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">date</span>:<a href="Number.html">Number</a></code> (default = <code>1</code>)<code></code> &mdash; An integer from 1 to 31.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">hour</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 (midnight) to 23 (11 p.m.).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 999 of milliseconds.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMonth()" target="">getMonth()</a><br/><a href="Date.html#getDate()" target="">getDate()</a><br/><a href="Date.html#getFullYear()" target="">getFullYear()</a></div></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="getDate()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getDate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getDate():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the day of the month (an integer from 1 to 31) specified by a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The day of the month (1 - 31) a
              <code>Date</code>
              object represents.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMonth()" target="">getMonth()</a><br/><a href="Date.html#getFullYear()" target="">getFullYear()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getDate()</code>
          method is then called, which retrieves the day of the month.
          <div class="listing"><pre>package {
    import flash.display.Sprite;

    public class DateExample extends Sprite {

        public function DateExample() {
            var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
            trace(someBirthday);            // Sat Nov 30 01:20:00 GMT-0800 1974
            trace(someBirthday.getDate()); // 30
        }
    }
}</pre></div>
        </div></div><a name="getDay()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getDay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getDay():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the day of the week (0 for Sunday, 1 for Monday, and so on) specified by this
          <code>Date</code>
          according to local time. Local time is determined by the operating 
  system on which Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              A numeric version of the day of the week (0 - 6) a
              <code>Date</code>
              object
  represents.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>weekDayLabels</code>
          , with elements
          <code>[Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday]</code>
          and a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getDay()</code>
          method is then called twice, which first shows the day of the month
 as 6 and then shows the day of the week using
          <code>weekDayLabels</code>
          .
          <div class="listing"><pre>var weekDayLabels:Array = new Array("Sunday",
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday",
                    "Saturday");

var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);                       // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getDay());            // 6
trace(weekDayLabels[someBirthday.getDay()]); // Saturday</pre></div>
        </div></div><a name="getFullYear()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getFullYear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getFullYear():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the full year (a four-digit number, such as 2000) of a
          <code>Date</code>
          object 
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The full year a
              <code>Date</code>
              object represents.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getFullYear()</code>
          method is then called, which retrieves the four-digit year.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);           // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getFullYear()); // 1974</pre></div>
        </div></div><a name="getHours()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getHours</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getHours():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the hour (an integer from 0 to 23) of the day portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The hour (0 - 23) of the day a
              <code>Date</code>
              object represents.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          methods are then called, which
 retrieves the hours and the minutes in 24-hour format.  Finally, a string
          <code>localTime</code>
          is created and assigned to the result of a call to the function
          <code>getUSClockTime()</code>
          , which, in turn calls
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          again, resulting in the time
          <code>03:05 PM</code>
          .
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 15, 5);

trace(someBirthday); // Sat Nov 30 15:20:00 GMT-0800 1974
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes()); // 15:5

var localTime:String = getUSClockTime(someBirthday.getHours(), someBirthday.getMinutes());
trace(localTime);    // 03:05 PM

function getUSClockTime(hrs:uint, mins:uint):String {
    var modifier:String = "PM";
    var minLabel:String = doubleDigitFormat(mins);

    if(hrs &gt; 12) {
        hrs = hrs-12;
    } else if(hrs == 0) {
        modifier = "AM";
        hrs = 12;
    } else if(hrs &lt; 12) {
        modifier = "AM";
    }

    return (doubleDigitFormat(hrs) + ":" + minLabel + " " + modifier);
}

function doubleDigitFormat(num:uint):String {
    if(num &lt; 10) {
        return ("0" + num);
    }
    return num;
}</pre></div>
        </div></div><a name="getMilliseconds()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getMilliseconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getMilliseconds():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the milliseconds (an integer from 0 to 999) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The milliseconds portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getMilliseconds()</code>
          method is then called, which retrieves the milliseconds of the
 Date object
          <code>now</code>
          at the time it was created.
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getMilliseconds());</pre></div>
        </div></div><a name="getMinutes()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getMinutes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getMinutes():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the minutes (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The minutes portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getMinutes()</code>
          method is then called, which retrieves the minutes of the
 Date object
          <code>now</code>
          at the time it was created.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.getMinutes());</pre></div>
        </div></div><a name="getMonth()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getMonth</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getMonth():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the month (0 for January, 1 for February, and so on) portion of this
          <code>Date</code>
          according to local time. Local time is determined by the operating system 
  on which Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The month (0 - 11) portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>monthLabels</code>
          , with elements
          <code>January</code>
          through
          <code>December</code>
          and a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getMonth()</code>
          method is then called twice, which first returns the month number and
 then the month name of the month the Date object
          <code>now</code>
          was created.
          <div class="listing"><pre>var monthLabels:Array = new Array("January",
                  "February",
                  "March",
                  "April",
                  "May",
                  "June",
                  "July",
                  "August",
                  "September",
                  "October",
                  "November",
                  "December");

var now:Date = new Date();
trace(now.getMonth());
trace(monthLabels[now.getMonth()]);</pre></div>
        </div></div><a name="getSeconds()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getSeconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getSeconds():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the seconds (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to local time. Local time is determined by the operating system on which 
  Flash Player is running.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The seconds (0 to 59) portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new  Date object
          <code>now</code>
          with no parameters.
 The
          <code>getSeconds()</code>
          method is then called, which retrieves the seconds of the
 Date object
          <code>now</code>
          at the time it was created.
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getSeconds());</pre></div>
        </div></div><a name="getTime()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getTime</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getTime():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the number of milliseconds since midnight January 1, 1970, universal time, 
  for a
          <code>Date</code>
          object. Use this method to represent a specific instant in time 
  when comparing two or more
          <code>Date</code>
          objects.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The number of milliseconds since Jan 1, 1970 that a
              <code>Date</code>
              object represents.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>mlk</code>
          with parameters
          <code>year</code>
          (
          <code>1929</code>
          ),
          <code>month</code>
          (
          <code>0</code>
          = January), and
          <code>day</code>
          (
          <code>15</code>
          ). The
          <code>getTime()</code>
          method is then called, which 
 retrieves the milliseconds since midnight January 1, 1970, which is negative since the year is 
 set to 1929.
          <div class="listing"><pre>var mlk:Date = new Date(1929, 0, 15);
trace(mlk);           // Tue Jan 15 00:00:00 GMT-0800 1929
trace(mlk.getTime()); // -1292601600000</pre></div>
        </div><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters
 and then uses the following DateMath (created below) class methods to add time to the original Date
 object
          <code>now</code>
          from the time it was created:
          <ul><li>
              <code>addSeconds()</code>
              : adds 30 seconds to
              <code>now</code>
              .
            </li><li>
              <code>addMinutes()</code>
              : adds 30 minutes to
              <code>now</code>
              .
            </li><li>
              <code>addHours()</code>
              : adds 6 hours to the Date object
              <code>now</code>
              .
            </li><li>
              <code>addDays()</code>
              : adds 30 days to the Date object
              <code>now</code>
              .
            </li><li>
              <code>addWeeks()</code>
              : adds 4 weeks to
              <code>now</code>
              .
            </li></ul>
          
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(DateMath.addSeconds(now, 30));
trace(DateMath.addMinutes(now, 30));
trace(DateMath.addHours(now, 6));
trace(DateMath.addDays(now, 30));
trace(DateMath.addWeeks(now, 4));

class DateMath {
    public static function addWeeks(date:Date, weeks:Number):Date {
        return addDays(date, weeks*7);
    }

    public static function addDays(date:Date, days:Number):Date {
        return addHours(date, days*24);
    }

    public static function addHours(date:Date, hrs:Number):Date {
        return addMinutes(date, hrs*60);
    }

    public static function addMinutes(date:Date, mins:Number):Date {
        return addSeconds(date, mins*60);
    }

    public static function addSeconds(date:Date, secs:Number):Date {
        var mSecs:Number = secs * 1000;
        var sum:Number = mSecs + date.getTime();
        return new Date(sum);
    }
}</pre></div>
          
          <b>Note</b>
          : it's important to use getTime when performing Date arithmetic because it will continue
 to work during leap years and doesn't require a bunch of if logic like following pseudo-code:
          <pre>function addMonths(num:Number):void {
 	currentMonth = currentMonth + num;
 	if(currentMonth > 12) {
 		currentYear++;
 		currentMonth = currentMonth - 12;
 	}
 }</pre>
          
        </div></div><a name="getTimezoneOffset()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getTimezoneOffset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getTimezoneOffset():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Returns the difference, in minutes, between universal 
     time (UTC) and the computer's local time.</p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The minutes you need to add to the computer's local time value to equal UTC. If
     your computer's time is set later than UTC, the return value will be negative.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getTimezoneOffset()</code>
          method is then called, which retrieves the difference (in minutes) of the
 time
          <code>now</code>
          was created and Universal Time.  The time zone offset is then converted to hours by
 dividing the result by 60.
          <div class="listing"><pre>var date:Date = new Date();
trace(date.getTimezoneOffset() / 60);</pre></div>
        </div></div><a name="getUTCDate()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCDate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCDate():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the day of the month (an integer from 1 to 31) of a
          <code>Date</code>
          object, 
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC day of the month (1 to 31) that a
              <code>Date</code>
              object represents.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getDate()" target="">getDate()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getUTCDate()</code>
          method is then called, which retrieves the day of the month, according to the UTC.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);             // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getUTCDate()); // 30</pre></div>
        </div></div><a name="getUTCDay()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCDay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCDay():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the day of the week (0 for Sunday, 1 for Monday, and so on) of this
          <code>Date</code>
          according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC day of the week (0 to 6) that a
              <code>Date</code>
              object represents.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getDay()" target="">getDay()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>weekDayLabels</code>
          , with elements
          <code>[Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday]</code>
          and a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getUTCDay()</code>
          method is then called twice, which first shows the day of the month
 as 6 and then shows the day of the week using
          <code>weekDayLabels</code>
          , according to the UTC.
          <div class="listing"><pre>var weekDayLabels:Array = new Array("Sunday",
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday",
                    "Saturday");

var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);           // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getUTCDay()); // 6
trace(weekDayLabels[someBirthday.getUTCDay()]); // Saturday</pre></div>
        </div></div><a name="getUTCFullYear()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCFullYear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCFullYear():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the four-digit year of a
          <code>Date</code>
          object according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC four-digit year a
              <code>Date</code>
              object represents.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getFullYear()" target="">getFullYear()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getUTCFullYear()</code>
          method is then called, which retrieves the four-digit year, according to the UTC.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);                 // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getUTCFullYear()); // 1974</pre></div>
        </div></div><a name="getUTCHours()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCHours</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCHours():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the hour (an integer from 0 to 23) of the day of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC hour of the day (0 to 23) a
              <code>Date</code>
              object represents.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getHours()" target="">getHours()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).
 The
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          methods are then called, which retrieves
 the hours and the minutes in 24-hour format.  Finally, a string
          <code>localTime</code>
          is created and
 assigned to the result of a call to the function
          <code>getUSClockTime()</code>
          , which, in turn calls
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          again, resulting in the time
          <code>03:05 PM</code>
          .
 Lastly, a String variable
          <code>utcTime</code>
          is created in the same manner as
          <code>localTime</code>
          ,
 and in this case, the result is the same.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 15, 5);

trace(someBirthday); // Sat Nov 30 15:20:00 GMT-0800 1974
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes()); // 15:5

var localTime:String = getUSClockTime(someBirthday.getHours(), someBirthday.getMinutes());
trace(localTime);    // 03:05 PM

var utcTime:String = getUSClockTime(someBirthday.getUTCHours(), someBirthday.getUTCMinutes());
trace(utcTime);      // 11:05 PM

function getUSClockTime(hrs:uint, mins:uint):String {
    var modifier:String = "PM";
    var minLabel:String = doubleDigitFormat(mins);

    if(hrs &gt; 12) {
        hrs = hrs-12;
    } else if(hrs == 0) {
        modifier = "AM";
        hrs = 12;
    } else if(hrs &lt; 12) {
        modifier = "AM";
    }

    return (doubleDigitFormat(hrs) + ":" + minLabel + " " + modifier);
}

function doubleDigitFormat(num:uint):String {
    if(num &lt; 10) {
        return ("0" + num);
    }
    return num;
}</pre></div>
        </div></div><a name="getUTCMilliseconds()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCMilliseconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCMilliseconds():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the milliseconds (an integer from 0 to 999) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC milliseconds portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getUTCMilliseconds()</code>
          method is then called, which retrieves the milliseconds of the
 Date object
          <code>now</code>
          at the time it was created, according to the UTC
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getUTCMilliseconds());</pre></div>
        </div></div><a name="getUTCMinutes()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCMinutes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCMinutes():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the minutes (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC minutes portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getUTCMinutes()</code>
          method is then called, which retrieves the minutes of the
 Date object
          <code>now</code>
          at the time it was created, according to the UTC
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getUTCMinutes());</pre></div>
        </div></div><a name="getUTCMonth()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCMonth</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCMonth():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the month (0 [January] to 11 [December]) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC month portion of a
              <code>Date</code>
              object.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getMonth()" target="">getMonth()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>monthLabels</code>
          , with elements
          <code>January</code>
          through
          <code>December</code>
          and a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getUTCMonth()</code>
          method is then called twice, which first returns the month number and
 then the month name of the month the Date object
          <code>now</code>
          was created, according to the UTC
          <div class="listing"><pre>var monthLabels:Array = new Array("January",
                  "February",
                  "March",
                  "April",
                  "May",
                  "June",
                  "July",
                  "August",
                  "September",
                  "October",
                  "November",
                  "December");

var now:Date = new Date();
trace(now.getMonth());
trace(now.getUTCMonth());
trace(monthLabels[now.getUTCMonth()]);</pre></div>
        </div></div><a name="getUTCSeconds()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getUTCSeconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function getUTCSeconds():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the seconds (an integer from 0 to 59) portion of a
          <code>Date</code>
          object
  according to universal time (UTC).
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The UTC seconds portion of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>getUTCSeconds()</code>
          method is then called, which retrieves the seconds of the
 Date object
          <code>now</code>
          at the time it was created, according to the UTC
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getUTCSeconds());</pre></div>
        </div></div><a name="parse()"></a><a name="parse(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">parse</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public static function parse(date:<a href="String.html">String</a>):<a href="Number.html">Number</a></code><p></p><p></p><p>Converts a string representing a date into a number equaling the number of milliseconds 
  elapsed since January 1, 1970, UTC.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">date</span>:<a href="String.html">String</a></code> &mdash; 
              A string representation of a date, which conforms to the format for the output of
              <code>Date.toString()</code>
              . The date format for the output of
              <code>Date.toString()</code>
              is:
              <pre>Day Mon DD HH:MM:SS TZD YYYY</pre>
              
              <p>For example:</p>
              
              <pre>Wed Apr 12 15:30:17 GMT-0700 2006</pre>
              
              <p>
                The Time Zone Designation (TZD) is always in the form
                <code>GMT-HHMM</code>
                or
                <code>UTC-HHMM</code>
                indicating the 
     hour and minute offset relative to Greenwich Mean Time (GMT), which is now also called universal time (UTC).
     The year month and day terms can be separated by a forward slash (
                <code>/</code>
                ) or by spaces, but never by a
     dash (
                <code>-</code>
                ). Other supported formats include the following (you can include partial representations of these 
     formats; that is, just the month, day, and year):
              </p>
              
              <pre>MM/DD/YYYY HH:MM:SS TZD
     HH:MM:SS TZD Day Mon/DD/YYYY 
     Mon DD YYYY HH:MM:SS TZD
     Day Mon DD HH:MM:SS TZD YYYY
     Day DD Mon HH:MM:SS TZD YYYY
     Mon/DD/YYYY HH:MM:SS TZD
     YYYY/MM/DD HH:MM:SS TZD</pre>
              
            </td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; A number representing the milliseconds elapsed since January 1, 1970, UTC.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toString()" target="">Date.toString()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example assigns a date string to
          <code>dateParsed</code>
          for November 30, 1974.  
 The
          <code>Date.parse()</code>
          method is then called, which converts the date into milliseconds since January 1, 1970.
          <div class="listing"><pre>var dateParsed:String = "Sat Nov 30 1974";

var milliseconds:Number = Date.parse(dateParsed);
trace(milliseconds); // 155030400000</pre></div>
        </div></div><a name="setDate()"></a><a name="setDate(Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setDate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setDate(day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the day of the month, according to local time, and returns the new time in 
  milliseconds. Local time is determined by the operating system on which Flash Player 
  is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The
 method
          <code>getDate()</code>
          is then called, which retrieves the day of the month.  Next
          <code>setDate()</code>
          is called with the
          <code>day</code>
          parameter set to
          <code>20</code>
          and
 then
          <code>getDate()</code>
          is called again, which retrieves the newly set day of month.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);            // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getDate()); // 30

someBirthday.setDate(20);
trace(someBirthday.getDate()); // 20</pre></div>
        </div></div><a name="setFullYear()"></a><a name="setFullYear(Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setFullYear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setFullYear(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Sets the year, according to local time, and returns the new time in milliseconds. If 
  the
          <code>month</code>
          and
          <code>day</code>
          parameters are specified, 
  they are set to local time. Local time is determined by the operating system on which 
  Flash Player is running.
          <p>
            Calling this method does not modify the other fields of the
            <code>Date</code>
            but
            <code>Date.getUTCDay()</code>
            and
            <code>Date.getDay()</code>
            can report a new value 
  if the day of the week changes as a result of calling this method.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">year</span>:<a href="Number.html">Number</a></code> &mdash; A four-digit number specifying a year. Two-digit numbers do not represent 
  four-digit years; for example, 99 is not the year 1999, but the year 99.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; A number from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCDay()" target="">getUTCDay()</a><br/><a href="Date.html#getDay()" target="">getDay()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The
 method
          <code>getFullYear()</code>
          is then called, which retrieves the four-digit year.
 Next
          <code>setFullYear()</code>
          is called with the
          <code>year</code>
          parameter set to
          <code>2000</code>
          and then
          <code>getFullYear()</code>
          is called again, which retrieves the newly set year.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday);           // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getFullYear()); // 1974

someBirthday.setFullYear(2000);
trace(someBirthday.getFullYear()); // 2000</pre></div>
        </div></div><a name="setHours()"></a><a name="setHours(Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setHours</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setHours(hour:<a href="Number.html">Number</a>, minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the hour, according to local time, and returns the new time in milliseconds. 
  Local time is determined by the operating system on which Flash Player is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">hour</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (midnight) to 23 (11 p.m.).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The methods
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          are then called, which retrieves the hours and minutes.  Next
          <code>setHours()</code>
          is called with the
          <code>hour</code>
          parameter set to
          <code>12</code>
          and then
          <code>getHours()</code>
          and
          <code>getMinutes()</code>
          are called again, which retrieves the newly set hours and minutes.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 15, 20);

trace(someBirthday); // Sat Nov 30 15:20:00 GMT-0800 1974
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes()); // 15:20

someBirthday.setHours(12);
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes()); // 12:20</pre></div>
        </div></div><a name="setMilliseconds()"></a><a name="setMilliseconds(Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setMilliseconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setMilliseconds(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the milliseconds, according to local time, and returns the new time in 
  milliseconds. Local time is determined by the operating system on which Flash Player 
  is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The method
          <code>getMilliseconds()</code>
          is then called, which retrieves the milliseconds when
          <code>now</code>
          was created.  Then another new Date object
          <code>before</code>
          with an additional
 call to
          <code>setMilliseconds()</code>
          with the
          <code>millisecond</code>
          parameter set to
          <code>4</code>
          and
          <code>getMilliseconds()</code>
          is called again, which retrieves the newly set milliseconds.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.getMilliseconds());

var before:Date = new Date(now.setMilliseconds(4));
trace(before);
trace(before.getMilliseconds());</pre></div>
        </div></div><a name="setMinutes()"></a><a name="setMinutes(Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setMinutes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setMinutes(minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the minutes, according to local time, and returns the new time in milliseconds. 
  Local time is determined by the operating system on which Flash Player is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The method
          <code>getMinutes()</code>
          is then called, which retrieves the minutes when
          <code>now</code>
          was created.  Then another new Date object
          <code>before</code>
          with an additional
 call to
          <code>setMinutes()</code>
          with the
          <code>minute</code>
          parameter set to
          <code>0</code>
          and
          <code>getMinutes()</code>
          is called again, which retrieves the newly set minutes.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.getMinutes());

var before:Date = new Date(now.setMinutes(0));
trace(before);
trace(before.getMinutes());</pre></div>
        </div></div><a name="setMonth()"></a><a name="setMonth(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setMonth</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setMonth(month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the month and optionally the day of the month, according to local time, and 
  returns the new time in milliseconds. Local time is determined by the operating 
  system on which Flash Player is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>monthLabels</code>
          , with elements
          <code>January</code>
          through
          <code>December</code>
          and a new month object
          <code>now</code>
          with no parameters.
 The method
          <code>getMonth()</code>
          is then called, which retrieves the month in which
          <code>now</code>
          was created.  Next
          <code>setMonth()</code>
          is called with the
          <code>month</code>
          parameter set to
          <code>0</code>
          and then
          <code>getMonth()</code>
          is called again, which retrieves the newly set month..
          <div class="listing"><pre>var monthLabels:Array = new Array("January",
                  "February",
                  "March",
                  "April",
                  "May",
                  "June",
                  "July",
                  "August",
                  "September",
                  "October",
                  "November",
                  "December");

var now:Date = new Date();
trace(now.getMonth());
trace(monthLabels[now.getMonth()]);

now.setMonth(0);
trace(now.getMonth());             // 0
trace(monthLabels[now.getMonth()]); // January</pre></div>
        </div></div><a name="setSeconds()"></a><a name="setSeconds(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setSeconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setSeconds(second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the seconds, according to local time, and returns the new time in milliseconds. 
  Local time is determined by the operating system on which Flash Player is running.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.  
 The method
          <code>getseconds()</code>
          is then called, which retrieves the seconds when
          <code>now</code>
          was created.  Then the
          <code>setSeconds()</code>
          is called with the
          <code>second</code>
          parameter set to
          <code>0</code>
          and
          <code>getSeconds()</code>
          is called again, which retrieves the newly set seconds.
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getSeconds());

now.setSeconds(0);
trace(now.getSeconds()); // 0</pre></div>
        </div></div><a name="setTime()"></a><a name="setTime(Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setTime</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setTime(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the date in milliseconds since midnight on January 1, 1970, and returns the new 
  time in milliseconds.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer value where 0 is midnight on January 1, universal time (UTC).</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The
          <code>setTime()</code>
          method is then called, with the
          <code>millisecond</code>
          parameter set
 to
          <code>-1292601600000</code>
          , which sets the time to
          <code>Tue Jan 15 00:00:00 GMT-0800 1929</code>
          .
          <div class="listing"><pre>var now:Date = new Date();
trace(now);

now.setTime(-1292601600000);
trace(now); // Tue Jan 15 00:00:00 GMT-0800 1929</pre></div>
        </div></div><a name="setUTCDate()"></a><a name="setUTCDate(Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCDate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCDate(day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Sets the day of the month, in universal time (UTC), and returns the new time in 
  milliseconds. Calling this method does not modify the other fields of a
          <code>Date</code>
          object, but the
          <code>Date.getUTCDay()</code>
          and
          <code>Date.getDay()</code>
          methods can report 
  a new value if the day of the week changes as a result of calling this method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; A number; an integer from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCDay()" target="">getUTCDay()</a><br/><a href="Date.html#getDay()" target="">getDay()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The method
          <code>getUTCDate()</code>
          is called and correctly returns the day of the month.  Next
          <code>setUTCDate()</code>
          is called with the
          <code>day</code>
          parameter set to
          <code>1</code>
          and a
          <code>trace()</code>
          statement
 confirms the date was correctly set.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday); // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getUTCDate()); // 30

someBirthday.setUTCDate(1);
trace(someBirthday); // Fri Nov 1 01:20:00 GMT-0800 1974</pre></div>
        </div></div><a name="setUTCFullYear()"></a><a name="setUTCFullYear(Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCFullYear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCFullYear(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Sets the year, in universal time (UTC), and returns the new time in milliseconds.
          <p>
            Optionally, this method can also set the month and day of the month. Calling 
  this method does not modify the other fields, but the
            <code>Date.getUTCDay()</code>
            and
            <code>Date.getDay()</code>
            methods can report a new value if the day of the week changes as a 
  result of calling this method.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">year</span>:<a href="Number.html">Number</a></code> &mdash; An integer that represents the year specified as a full four-digit year, 
  such as 2000.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; An integer.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getUTCDay()" target="">getUTCDay()</a><br/><a href="Date.html#getDay()" target="">getDay()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The method
          <code>getUTCFullYear()</code>
          is called and correctly returns the four-digit year.  Next
          <code>setUTCFullYear()</code>
          is called with the
          <code>year</code>
          parameter set to
          <code>1975</code>
          and a
          <code>trace()</code>
          statement
 confirms the year was correctly set.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 1, 20);
trace(someBirthday); // Sat Nov 30 01:20:00 GMT-0800 1974
trace(someBirthday.getUTCFullYear()); // 1974

someBirthday.setUTCFullYear(1975);
trace(someBirthday); // Thu Nov 30 01:20:00 GMT-0800 1975</pre></div>
        </div></div><a name="setUTCHours()"></a><a name="setUTCHours(Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCHours</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCHours(hour:<a href="Number.html">Number</a>, minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the hour, in universal time (UTC), and returns the new time in milliseconds. 
  Optionally, the minutes, seconds, and milliseconds can be specified.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">hour</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (midnight) to 23 (11 p.m.).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ).  The methods
          <code>getHours()</code>
          ,
          <code>getMinutes()</code>
          ,
          <code>getUTCHours()</code>
          , and
          <code>getUTCMinutes()</code>
          are then called, which retrieves the hours and minutes. Next
          <code>setUTCHours()</code>
          is called with the
          <code>hour</code>
          parameter set to
          <code>12</code>
          and then the methods
          <code>getHours()</code>
          ,
          <code>getMinutes()</code>
          ,
          <code>getUTCHours()</code>
          , and
          <code>getUTCMinutes()</code>
          are re-called and
 correctly display the updated hour.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 15, 20);

trace(someBirthday); // Sat Nov 30 15:20:00 GMT-0800 1974
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes());     // 15:20
trace(someBirthday.getUTCHours() + ":" + someBirthday.getUTCMinutes()); // 23:20

someBirthday.setUTCHours(12);
trace(someBirthday.getHours() + ":" + someBirthday.getMinutes());     // 4:20
trace(someBirthday.getUTCHours() + ":" + someBirthday.getUTCMinutes()); // 12:20</pre></div>
        </div></div><a name="setUTCMilliseconds()"></a><a name="setUTCMilliseconds(Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCMilliseconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCMilliseconds(millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the milliseconds, in universal time (UTC), and returns the new time in milliseconds.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The method
          <code>getUTCMilliseconds()</code>
          is then called, which retrieves the UTCMilliseconds when
          <code>now</code>
          was created.  Then another new Date object
          <code>before</code>
          with an additional
 call to
          <code>setUTCMilliseconds()</code>
          with the
          <code>millisecond</code>
          parameter set to
          <code>4</code>
          and
          <code>getUTCMilliseconds()</code>
          is called again, which retrieves the newly set milliseconds.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.getUTCMilliseconds());

var before:Date = new Date(now.setUTCMilliseconds(4));
trace(before);
trace(before.getUTCMilliseconds());</pre></div>
        </div></div><a name="setUTCMinutes()"></a><a name="setUTCMinutes(Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCMinutes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCMinutes(minute:<a href="Number.html">Number</a>, second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the minutes, in universal time (UTC), and returns the new time in milliseconds.
  Optionally, you can specify the seconds and milliseconds.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.
 The method
          <code>getUTCMinutes()</code>
          is then called, which retrieves the UTCMinutes when
          <code>now</code>
          was created.  Then another new Date object
          <code>before</code>
          with an additional
 call to
          <code>setUTCMinutes()</code>
          with the
          <code>minute</code>
          parameter set to
          <code>0</code>
          and
          <code>getUTCMinutes()</code>
          is called again, which retrieves the newly set minutes.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.getUTCMinutes());

var before:Date = new Date(now.setUTCMinutes(0));
trace(before);
trace(before.getUTCMinutes());</pre></div>
        </div></div><a name="setUTCMonth()"></a><a name="setUTCMonth(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCMonth</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCMonth(month:<a href="Number.html">Number</a>, day:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Sets the month, and optionally the day, in universal time(UTC) and returns the new 
  time in milliseconds. Calling this method does not modify the other fields, but the
          <code>Date.getUTCDay()</code>
          and
          <code>Date.getDay()</code>
          methods might report a new 
  value if the day of the week changes as a result of calling this method.
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">day</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 1 to 31.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#getDay()" target="">getDay()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Array object
          <code>UTCMonthLabels</code>
          , with elements
          <code>January</code>
          through
          <code>December</code>
          and a new UTCMonth object
          <code>now</code>
          with no parameters.
 The method
          <code>getUTCMonth()</code>
          is then called, which retrieves the UTCMonth in which
          <code>now</code>
          was created.  Next
          <code>setUTCMonth()</code>
          is called with the
          <code>month</code>
          parameter set to
          <code>0</code>
          and then
          <code>getUTCMonth()</code>
          is called again, which retrieves the newly set month..
          <div class="listing"><pre>var UTCMonthLabels:Array = new Array("January",
                  "February",
                  "March",
                  "April",
                  "May",
                  "June",
                  "July",
                  "August",
                  "September",
                  "October",
                  "November",
                  "December");

var now:Date = new Date();
trace(now.getUTCMonth());
trace(UTCMonthLabels[now.getUTCMonth()]);

now.setUTCUTCMonth(0);
trace(now.getUTCMonth());              // 0
trace(UTCMonthLabels[now.getUTCMonth()]); // January</pre></div>
        </div></div><a name="setUTCSeconds()"></a><a name="setUTCSeconds(Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">setUTCSeconds</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function setUTCSeconds(second:<a href="Number.html">Number</a>, millisecond:<a href="Number.html">Number</a>):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Sets the seconds, and optionally the milliseconds, in universal time (UTC) and 
  returns the new time in milliseconds.</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The new time, in milliseconds.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters.  
 The method
          <code>getUTCSeconds()</code>
          is then called, which retrieves the seconds when
          <code>now</code>
          was created.  Then the
          <code>setUTCSeconds()</code>
          is called with the
          <code>second</code>
          parameter set to
          <code>0</code>
          and
          <code>getUTCSeconds()</code>
          is called again, which retrieves the 
 newly set seconds.
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getUTCSeconds());

now.setUTCSeconds(0);
trace(now.getUTCSeconds()); // 0</pre></div>
        </div></div><a name="toDateString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toDateString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toDateString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a string representation of the day and date only, and does not include the time or timezone.
  Contrast with the following methods:
          <ul><li>
              <code>Date.toTimeString()</code>
              , which returns only the time and timezone
            </li><li>
              <code>Date.toString()</code>
              , which returns not only the day and date, but also the time and timezone.
            </li></ul>
          
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; The string representation of day and date only.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toString()" target="">toString()</a></div><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters
 and then the following methods are called within a
          <code>trace()</code>
          statement
          <ul><li>
              <code>toString</code>
              : displays all parameters for
              <code>now</code>
              at the time
              <code>now</code>
              was created.
            </li><li>
              <code>toDateString()</code>
              : displays the
              <code>day</code>
              ,
              <code>month</code>
              , and
              <code>year</code>
              parameters
     for the time
              <code>now</code>
              was created.
            </li></ul>
          
          <div class="listing"><pre>var now:Date = new Date();
trace(now);
trace(now.toDateString());</pre></div>
        </div></div><a name="toLocaleDateString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toLocaleDateString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toLocaleDateString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the day and date only, and does not include the time or timezone.
  This method returns the same value as
          <code>Date.toDateString</code>
          .
  Contrast with the following methods:
          <ul><li>
              <code>Date.toTimeString()</code>
              , which returns only the time and timezone
            </li><li>
              <code>Date.toString()</code>
              , which returns not only the day and date, but also the
  time and timezone.
            </li></ul>
          
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; 
              The
              <code>String</code>
              representation of day and date only.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toDateString()" target="">toDateString()</a><br/><a href="Date.html#toTimeString()" target="">toTimeString()</a><br/><a href="Date.html#toString()" target="">toString()</a></div></div><a name="toLocaleString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toLocaleString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toLocaleString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the day, date, time, given in local time.
  Contrast with the
          <code>Date.toString()</code>
          method, which returns the same information (plus the timezone)
  with the year listed at the end of the string.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; 
              A string representation of a
              <code>Date</code>
              object in the local timezone.
            </td></tr></table></div><a name="toLocaleTimeString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toLocaleTimeString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toLocaleTimeString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the time only, and does not include the day, date, year, or timezone.
  Contrast with the
          <code>Date.toTimeString()</code>
          method, which returns the time and timezone.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; The string representation of time and timezone only.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toTimeString()" target="">toTimeString()</a></div></div><a name="toString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the day, date, time, and timezone.
     The date format for the output is:
          <pre>Day Mon Date HH:MM:SS TZD YYYY</pre>
          
          <p>For example:</p>
          
          <pre>Wed Apr 12 15:30:17 GMT-0700 2006</pre>
          
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; 
              The string representation of a
              <code>Date</code>
              object.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters
 and then
          <code>toString</code>
          is called within a
          <code>trace()</code>
          statement, which
 displays all parameters for
          <code>now</code>
          at the time
          <code>now</code>
          was created.
          <div class="listing"><pre>var now:Date = new Date();
trace(now);</pre></div>
        </div></div><a name="toTimeString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toTimeString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toTimeString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the time and timezone only, and does not include the day and date.
  Contrast with the
          <code>Date.toDateString()</code>
          method, which returns only the day and date.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; The string representation of time and timezone only.</td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toDateString()" target="">toDateString()</a></div></div><a name="toUTCString()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">toUTCString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function toUTCString():<a href="String.html">String</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns a String representation of the day, date, and time in universal time (UTC).
  For example, the date February 1, 2005 is returned as
          <code>Tue Feb 1 00:00:00 2005 UTC</code>
          .
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="String.html">String</a></code> &mdash; 
              The string representation of a
              <code>Date</code>
              object in UTC time.
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="Date.html#toString()" target="">toString()</a></div></div><a name="UTC()"></a><a name="UTC(Number,Number,Number,Number,Number,Number,Number)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">UTC</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> public static function UTC(year:<a href="Number.html">Number</a>, month:<a href="Number.html">Number</a>, date:<a href="Number.html">Number</a> = 1, hour:<a href="Number.html">Number</a> = 0, minute:<a href="Number.html">Number</a> = 0, second:<a href="Number.html">Number</a> = 0, millisecond:<a href="Number.html">Number</a> = 0):<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the number of milliseconds between midnight on January 1, 1970, universal time, 
  and the time specified in the parameters. This method uses universal time, whereas the
          <code>Date</code>
          constructor uses local time.
          <p>This method is useful if you want to pass a UTC date to the Date class constructor.
  Because the Date class constructor accepts the millisecond offset as an argument, you
  can use the Date.UTC() method to convert your UTC date into the corresponding millisecond 
  offset, and send that offset as an argument to the Date class constructor:</p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">year</span>:<a href="Number.html">Number</a></code> &mdash; A four-digit integer that represents the year (for example, 2000).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">month</span>:<a href="Number.html">Number</a></code> &mdash; An integer from 0 (January) to 11 (December).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">date</span>:<a href="Number.html">Number</a></code> (default = <code>1</code>)<code></code> &mdash; An integer from 1 to 31.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">hour</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 (midnight) to 23 (11 p.m.).</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">minute</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">second</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 59.</td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">millisecond</span>:<a href="Number.html">Number</a></code> (default = <code>0</code>)<code></code> &mdash; An integer from 0 to 999.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; The number of milliseconds since January 1, 1970 and the specified date and time.</td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>someBirthday</code>
          with parameters
          <code>year</code>
          (
          <code>1974</code>
          ),
          <code>month</code>
          (
          <code>10</code>
          = November),
          <code>day</code>
          (
          <code>30</code>
          ),
          <code>hour</code>
          (
          <code>1</code>
          ) and
          <code>minute</code>
          (
          <code>20</code>
          ) using local
 time.  Then a call to
          <code>UTC()</code>
          within a
          <code>setTime()</code>
          method resets the same parameters
 to universal time.
          <div class="listing"><pre>var someBirthday:Date = new Date(1974, 10, 30, 15, 20);
trace(someBirthday.toString());

someBirthday.setTime(Date.UTC(1974, 10, 30, 15, 20));
trace(someBirthday.toString());</pre></div>
        </div></div><a name="valueOf()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">valueOf</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function valueOf():<a href="Number.html">Number</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Returns the number of milliseconds since midnight January 1, 1970, universal time, 
  for a
          <code>Date</code>
          object.
        </p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Number.html">Number</a></code> &mdash; 
              The number of milliseconds since January 1, 1970 that a
              <code>Date</code>
              object represents.
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example creates a new Date object
          <code>now</code>
          with no parameters
 The
          <code>getTime()</code>
          method is then called, which retrieves the number of milliseconds between
 the time
          <code>now</code>
          was created and midnight on
 January 1, 1970, and then
          <code>valueOf()</code>
          is called, which retrieves the same thing.
          <div class="listing"><pre>var now:Date = new Date();
trace(now.getTime());
trace(now.valueOf());</pre></div>
        </div></div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples<span class="usage"><a href="ExampleInstruct.html"> How to use examples </a></span></div><div class="exampleHeader">DateExample.as</div><br/><div class="detailBody">
        The following example shows various uses of the
        <code>Date()</code>
        constructor to assign the
 following variables:
        <ul><li>
            <code>myDate1</code>
            calls
            <code>Date()</code>
            with no parameters, which sets
            <code>myDate1</code>
            to the
     current date and time (according to your current system's date and time).
          </li><li>
            <code>myDate2</code>
            calls
            <code>Date()</code>
            with the
            <code>year</code>
            (
            <code>2000</code>
            ), month
 	(
            <code>0</code>
            = January), and
            <code>day</code>
            (
            <code>1</code>
            ) parameters passed to it.
          </li><li>
            <code>myDate3</code>
            calls
            <code>Date()</code>
            with the
            <code>year</code>
            (
            <code>65</code>
            = 1965),
            <code>month</code>
            (
            <code>2</code>
            = March), the
            <code>day</code>
            (
            <code>6</code>
            ), the
            <code>hour</code>
            (
            <code>9</code>
            ), the
            <code>minute</code>
            (
            <code>30</code>
            ), the
            <code>second</code>
            (
            <code>15</code>
            )
 	and the
            <code>millisecond</code>
            -+ (
            <code>0</code>
            ) passed as parameters.
          </li><li>
            <code>myDate4</code>
            calls
            <code>Date()</code>
            with the time value representing the number of milliseconds
            <b>before</b>
            (since the value is negative) 0:00:00 GMT January 1, 1970.
          </li></ul>
        
        <div class="listing"><pre>package {
    import flash.display.Sprite;
    
    public class DateExample extends Sprite{
        public function DateExample() {
            var myDate1:Date = new Date();
            trace(myDate1); // [NOW]

            var myDate2:Date = new Date(2000, 0, 1);
            trace(myDate2); // Sat Jan 1 00:00:00 GMT-0800 2000

            var myDate3:Date = new Date(65, 2, 6, 9, 30, 15, 0);
            trace(myDate3); // Sat Mar 6 09:30:15 GMT-0800 1965

            var myDate4:Date = new Date(-14159025000);
            trace(myDate4); // Sun Jul 20 19:56:15 GMT-0700 1969
        }        
    }    
}</pre></div>
      </div><br/><br/><hr><br/><p></p><center class="copyright"> &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  </center><div style="display:none">Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date Date </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
