Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper for manipulations with dates.

Hierarchy

  • DateUtils

Index

Date

Static dateIsTodayOrTomorrow

  • dateIsTodayOrTomorrow(date: Date, dateString: string, dateFormat: DateFormat, delimiter?: string): boolean
  • Checks if date is today or tomorrow with defined formatter. Useful when is needed to check dates in emails when action was made several minutes before midnight and in email can be new date.

    Parameters

    • date: Date
    • dateString: string
    • dateFormat: DateFormat
    • delimiter: string = '/'

    Returns boolean

Static firstMonthDayDate

  • firstMonthDayDate(date: Date): Date

Static formatDateString

  • formatDateString(date: Date, dateFormat: DateFormat, delimiter?: string): string
  • Formats date string, using date formatter and delimiter.

    Parameters

    • date: Date
    • dateFormat: DateFormat
    • delimiter: string = '/'

    Returns string

Static tomorrow

  • tomorrow(date: Date): Date

Other

constructor

Static currentMonthString

  • currentMonthString(date: Date): string

Generated using TypeDoc