ComPDFKit Web SDK
    Preparing search index...

    Function addDateTimeFormat

    • Appends an item to the date / time dropdown of the custom stamp dialog (dayjs tokens; date and time are joined by a space, time first when timeFirst). Ignored with console.error when it is not an object or has neither key.

      Parameters

      • dateTimeFormat: { date?: string; time?: string; timeFirst?: boolean }

        { date?, time?, timeFirst? }.

        • Optionaldate?: string

          Date format, such as 'YYYY-MM-DD'.

        • Optionaltime?: string

          Time format, such as 'HH:mm'.

        • OptionaltimeFirst?: boolean

          When true, the time is shown before the date.

      Returns void

      instance.UI.addDateTimeFormat({ date: 'YYYY-MM-DD', time: 'HH:mm' });