public static function register()
	{
		Container::extensionMethod('addDate', function ($container, $name, $label = NULL) {
			$picker = $container[$name] = new DatePicker($label);
			return $picker;
		});
	}
public static function register()
	{
		Container::extensionMethod('addDate', function ($container, $name, $label = NULL) {
			$picker = $container[$name] = new DatePicker($label);
			return $picker;
		});
	}
public static function register ( ) { Container :: extensionMethod ( 'addDate' , function ( $ container , $ name , $ label = NULL ) { $ picker = $ container [ $ name ] = new DatePicker ( $ label ) ; return $ picker ; } ) ; }
Registers this control

@return DatePicker
Registers this control