Notion Helper - v1.3.29
    Preparing search index...

    Function mentionDate

    • Creates a date mention with shorthand syntax.

      Parameters

      • date: string | Object

        The date string or date object

      • Optionaloptions: { annotations?: Object; url?: string } = {}

        Additional options for the mention

        • Optionalannotations?: Object

          Text annotations (bold, italic, etc.)

        • Optionalurl?: string

          URL for the mention

      Returns Object[]

      • Array with a single Rich Text Object containing the date mention
      // Simple date mention
      mentionDate("2025-01-01")

      // Date mention with time range
      mentionDate({ start: "2025-01-01", end: "2025-01-02" })

      // Date mention with annotations
      mentionDate("2025-01-01", { annotations: { bold: true } })