txt: ## invalidformat.md
  class X::Temporal::InvalidFormat
  
  Error due to using an invalid format when creating a DateTime or Date
  
  ```raku
  class X::Temporal::InvalidFormat does X::Temporal is Exception { }
  
  ```
  
  This exception is thrown when code tries to create a [`DateTime`](/type/DateTime) or [`Date`](/type/Date) object using an invalid format.
  
  ```raku
  my $dt = Date.new("12/25/2015");
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::Temporal::InvalidFormat: Invalid Date string '12/25/2015'; use yyyy-mm-dd instead␤»
  
  ```
  
  # [Methods](#class_X::Temporal::InvalidFormat "go to top of document")[§](#Methods "direct link")
  
  ## [method invalid-str](#class_X::Temporal::InvalidFormat "go to top of document")[§](#method_invalid-str "direct link")
  
  Returns the invalid format string (`12/25/2015` in the example above)
  
  ## [method target](#class_X::Temporal::InvalidFormat "go to top of document")[§](#method_target "direct link")
  
  Returns the target type ([`Date`](/type/Date) in the example above)
  
  ## [method format](#class_X::Temporal::InvalidFormat "go to top of document")[§](#method_format "direct link")
  
  Returns valid format strings for the target type in question, (`yyyy-mm-dd` in the example above)
  