Function getDiff

  • Calculate the difference between two dates and return it in defined format

    Parameters

    • date1: Moment
    • date2: Moment
    • timeTrackingUnit: Diff

    Returns number