The Date class shows how dates and times are represented in ActionScript, and it supports operations for manipulating dates and times. The Date class can also obtain the current date and time from the operating system.
For more information about the Date class, see the following:
The following table lists the methods (functions) that have been added to the Date class when using ActionScript for Flash Lite 2.x and 3.0.
|
Method |
Description |
|---|---|
| getLocaleLongDate() |
This function sets a parameter to a string that represents the current date, in long form, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiple-character, variable-length string. The actual formatting depends on the device and the locale. |
| getLocaleShortDate() |
This function sets a parameter to a string that represents the current date, in abbreviated form, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiple-character, variable-length string. The actual formatting depends on the device and the locale. |
| getLocaleTime() |
This function sets a parameter to a string that represents the current time, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiple-character, variable-length string. The actual formatting depends on the device and the locale. |
Send me an e-mail when comments are added to this page | Comment Report