Interface AppointmentPickerApiFormat

Provides functions related to date and time formats, such as formatting a date / time or parsing a formatted date / time.

Hierarchy

  • AppointmentPickerApiFormat

Index

Methods

Methods

formatSlot

  • formatSlot(picker: AppointmentPickerStateReference, slot: AppointmentSlot): AppointmentPickerFormattedSlot | undefined
  • Gets the formatted date and time for the given slot, using the format currently in-use by the first appointment picker from the given reference.

    Parameters

    • picker: AppointmentPickerStateReference

      A reference to the appointment picker with the format settings.

    • slot: AppointmentSlot

      A slot to format.

    Returns AppointmentPickerFormattedSlot | undefined

    The formatted date and time of the slot, undefined when the given reference does not refer to any appointment pickers.