Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Date

Extends the built-in javascript Date object's prototype.

The Format.Config.addToStringOverload method must be called in order to access the definitions.

Hierarchy

  • Date

Index

Methods

Methods

toString

  • Converts the date value of this instance to its equivalent string representation, using the specified format.

    Must call Format.Config.addToStringOverload to be defined.

    Parameters

    • format: string

      A standard or custom date format string.

    Returns string

    The formatted date value.

  • Converts the date value of this instance to its equivalent string representation using the specified culture-specific format information.

    Must call Format.Config.addToStringOverload to be defined.

    Parameters

    • provider: FormatProvider

      An object that supplies culture-specific formatting information.

    Returns string

    The formatted date value.

  • Converts the date value of this instance to its equivalent string representation using the specified format and culture-specific format information.

    Must call Format.Config.addToStringOverload to be defined.

    Parameters

    • format: string

      A standard or custom date format string.

    • provider: FormatProvider

      An object that supplies culture-specific formatting information.

    Returns string

    The formatted date value.

Generated using TypeDoc