Packageorg.spicefactory.lib.reflect.converter
Classpublic class DateConverter
ImplementsConverter

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 Methods
 MethodDefined by
  
Creates a new Converter instance.
DateConverter
  
convert(value:*):*
Converts the specified value to the target type this Converter is implemented for.
DateConverter
Public Constants
 ConstantDefined by
  INSTANCE : DateConverter
[static]
DateConverter
Constructor detail
DateConverter()constructor
public function DateConverter()

Creates a new Converter instance.

Method detail
convert()method
public function convert(value:*):*

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

Returns
* — the converted value
Constant detail
INSTANCEconstant
public static const INSTANCE:DateConverter