Skip to main content

Date_Time_Formatter.from_java

Date_Time_Formatter.from_javapatternlocale

Documentation

Creates a formatter from a Java DateTimeFormatter instance or a text pattern parsed using the Java parser: DateTimeFormatter.ofPattern. See the Java documentation for explanation of the pattern format: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/format/DateTimeFormatter.html#patterns

Arguments

  • pattern: The pattern string to parse using the Java pattern rules, or an existing DateTimeFormatter instance.
  • locale: A locale to use when constructing the formatter from a text pattern. If not specified, defaults to Locale.default. If passing a DateTimeFormatter instance and this argument is set, it will overwrite the original locale of that formatter.