Function checkIsBeforeToday

  • Determine if a date is before today.

    Parameters

    • date: MomentInput

    Returns boolean

    Example

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