Use the getDate() and getUTCDate() methods to return the values of the local day of the month and the corresponding day of the month UTC, respectively. : Date « Development « Flash / Flex / ActionScript

Flash / Flex / ActionScript
1. Animation
2. Array
3. Class
4. Data Type
5. Development
6. Function
7. Graphics
8. Language
9. Network
10. Regular Expressions
11. Statement
12. String
13. TextField
14. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Flash / Flex / ActionScript » Development » Date 
Use the getDate() and getUTCDate() methods to return the values of the local day of the month and the corresponding day of the month UTC, respectively.
 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var dThen:Date = new Date(1523313);
        trace(dThen.getDate());  // Displays: 13

    }
  }
}

        
Related examples in the same category
1. Creating a Date Object
2. Making a Date Based on Epoch Milliseconds: var dDateObject:Date = new Date(epochMilliseconds);
3. Making a Date Based on Year or Month: var dDateObject:Date = new Date(year, month, date, hour, minute, second, millisecond);
4. Use four digit to construct the year field
5. Send the Date constructor a series of values for the year, month, day of the month, hour, minute, second, and millisecond to represent.
6. Hours are measured in 24-hour/military time, so they can range from 0 (12 a.m.) to 23 (11 p.m.).
7. Use an array of the proper names to translate directly
8. Create a Date object is by passing it a string representing a time.
9. Get date and month from a Date object
10. Use getUTCFullYear() to determine the UTC year that corresponds to a given local date
11. getDay() or getUTCDay() methods return the day of the week as an integer from 0 to 6.
12. Getting the Hours, Minutes, Seconds, and Milliseconds
13. Call getter method of Date object
14. Get time
15. Getting the Time Zone Offset
16. setFullYear() method takes an integer parameter that is interpreted literally in all ranges, even 0 to 99.
17. Setting the Month
18. Pass negative values to these methods. Date starts with 0, January, and subtracts. Thus, a value of –1 is the same as saying December of the previous year.
19. Setting the Date: use the setDate() and setUTCDate() methods to set the day of the month for a Date object.
20. Setting the Hours, Minutes, Seconds, and Milliseconds
21. Setting the Time
22. The toString() method is inherited from the Object class, and it returns a string representing the value.
23. UTC() is a method that returns the time value in milliseconds from midnight on January 1, 1970
24. Use UTC method to construct date object
25. using the Date class's static parse() method.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.