x4js - v2.3.33
    Preparing search index...

    Function date_format

    • a date as text: with options, the ones of Intl.DateTimeFormat in the current locale; without, the format of the language (_tr.global.date_format)

      Parameters

      • date: Date
      • Optionaloptions: DateTimeFormatOptions

      Returns string

      let date = new Date( );
      let options = { day: 'numeric', month: 'long', year: 'numeric' };
      let text = date_format( date, options );