Function checkIsToday

  • Determine if a date is today.

    Parameters

    • date: MomentInput

    Returns boolean

    Example

    SR.date.checkIsToday(new Date("2020-12-25"));
    // expected result if the current day is equal declared date(2020-12-25): true
    // otherwise: false