DateTimeFormatter

class DateTimeFormatter : JFormattedTextField.AbstractFormatter(source)

Formats a string to a LocalDateTime and vice versa.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun stringToValue(text: String?): LocalDateTime

Attempts to parse text to a LocalDateTime using a best guess to detect the date format used.

Link copied to clipboard
open override fun valueToString(value: Any?): String

Returns the ISO-8601-ish representation of value, which must be a LocalDateTime.