Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/datetimes

Index

Functions

  • areDatesSameDay(date: string | Date, otherDate: string | Date): boolean
  • Simple function that returns true if the given dates are the same day

    Parameters

    • date: string | Date

      the first date to compare

    • otherDate: string | Date

      the second date to compare

    Returns boolean

    • a boolean
  • isToday(date: string | Date): boolean
  • Simple function that returns true if the given date is today

    Parameters

    • date: string | Date

      the date to compare against today

    Returns boolean

    • a boolean

Generated using TypeDoc