Documentation for method
formatter assembled from the following types:
Returns the formatting function which is used for conversion to Str. If none was provided at object construction, a default formatter is used. In that case the method will return a Callable type object.
The formatting function is called by DateTime method Str with the invocant as its only argument.
my = Date.new('2015-12-31'); # (no formatter specified)say .formatter.^name; # OUTPUT: «Callable␤»my = sub () ;= Date.new('2015-12-31', formatter => );say .formatter.^name; # OUTPUT: «Sub␤»say ; # OUTPUT: «12/31/2015␤»