ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.icomm.assetplacement.controller.utils 

ExpiryDateFormat  - AS3 Asset Placement

Packagecom.adobe.icomm.assetplacement.controller.utils
Classpublic class ExpiryDateFormat
InheritanceExpiryDateFormat Inheritance DateFormatter Inheritance Formatter Inheritance Object

Language Version: ActionScript 3.0
Product Version: Asset Placement Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

This class validates date strings used for resource expiration. Currently this class is not fully ISO 8601 compatible.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritederror : String
Description saved by the formatter when an error occurs.
Formatter
 InheritedformatString : String
The mask pattern.
DateFormatter
Protected Properties
 PropertyDefined By
 InheritedresourceManager : IResourceManager
[read-only] A reference to the object which manages all of the application's localized resources.
Formatter
Public Methods
 MethodDefined By
  
Construct an ExpiryDateFormatter object.
ExpiryDateFormat
 Inherited
[override] Generates a date-formatted String from either a date-formatted String or a Date object.
DateFormatter
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
[static] Given a date string of the form YYYY-MM-DD create and return the equivalent Date object.
ExpiryDateFormat
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Protected Methods
 MethodDefined By
 Inherited
This method is called when a Formatter is constructed, and again whenever the ResourceManager dispatches a "change" Event to indicate that the localized resources have changed in some way.
Formatter
Constructor Detail

ExpiryDateFormat

()Constructor
public function ExpiryDateFormat()

Language Version: ActionScript 3.0
Product Version: Asset Placement Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Construct an ExpiryDateFormatter object.

Method Detail

parseDateString

()method
public static function parseDateString(str:String):Date

Language Version: ActionScript 3.0
Product Version: Asset Placement Building Block 9.5
Runtime Versions: AIR 1.0, Flash Player 9, Flash Player 10

Given a date string of the form YYYY-MM-DD create and return the equivalent Date object.

Parameters

str:String — A string representing a date in the format YYYY-MM-DD.

Returns
Date — A Date object or null if the string is empty or does not conform to YYYY-MM-DD.