Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class containing a bunch of helper methods for commonly used Date interactions and other methods as
shortcuts.

Hierarchy

  • DateUtil

Index

Methods

Static formatAsLongDateString

  • formatAsLongDateString(date: Date, joinChar: string): string
  • Formats a Date to a long date string using the supplied join character.

    static

    Parameters

    • date: Date

      The date to format

    • joinChar: string

      The character to join the string with

    Returns string

    A string in the MM DD YYYY hh mm ss format with the supplied join character.

Static formatAsMonthAndYearDateString

  • formatAsMonthAndYearDateString(date: Date, joinChar: string): string
  • static

    Parameters

    • date: Date

      The date to format

    • joinChar: string

      The character to join the string with

    Returns string

    A string in the YYYY MONTH format with the supplied join character.

Constructors

constructor

Generated using TypeDoc