Converts to Date instances. Valid source types are Number (using it as a time value
passed to the Date constructor) or Strings in the format
YYYY-MM-DD HH:MM:SS
with the time part being optional.
public function DateConverter()
Creates a new Converter instance.
public function convert(value:*, domain:ApplicationDomain = null):*
Converts the specified value to the target type this Converter is implemented for.
Implementations should return the value unchanged if it is already of the target type.
Parameters
| value:* — the value to be converted
|
|
| domain:ApplicationDomain (default = null ) — the domain to use for reflection (only used by some converter implementations)
|
Returnspublic static const INSTANCE:DateConverter
Mon Feb 6 2012, 01:04 AM +01:00