React Hookers - v6.3.0
    Preparing search index...

    Function useDateTimeFormat

    • Provides localized Intl.DateTimeFormat for the current locale.

      Parameters

      • options: DateTimeFormatOptions = emptyObject

        Format options. Create options outside of rendering to enable format caching.

      Returns DateTimeFormat

      const format = useDateTimeFormat({ dateStyle: 'full' });

      format.format(100);
      // ⮕ 'Monday, April 21, 2025'