DevelopPHP
home Forum gear home

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting
Defining Date() Parameters   Share / Like
We can also send parameters to the Date() object in ActionScript 3.0 by placing values into the parenthesis. This gives us a method to set times and dates, or augment the value of a Date() object we have. We can run operations to see if dates match, are less than or greater than, and many other operations that our ActionScript 3.0 projects call for.

Defining Parameters for the Date() object
In the following example we create three different Date() objects to hold separate values defined by our parameters
Learn HTML
var date1:Date = new Date();
trace(date1); // now
    
var date2:Date = new Date(2004, 11, 25);
trace(date2); // Christmas 2004
    
var date3:Date = new Date(2002, 5, 6, 9, 30, 15, 0);
trace(date3); // Thu Jun 6 09:30:15 GMT-0400 2002

Develop PHP browser display window
Tue Aug 4 08:41:15 GMT-0400 2009
Sat Dec 25 00:00:00 GMT-0500 2004
Thu Jun 6 09:30:15 GMT-0400 2002
Home   •   Terms of Use   •   Developer Forums   •   T-Shirts   •   RSS   •   Classroom Chalkboard   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
©2013 DevelopPHP   |   Navigate to related domains HTML5