Returns the ISO day of week. Mon=1,Tue=2,...,Sun=7

  • Parameters

    • date: Date
    • startOfWeek:
          | "monday"
          | "mon"
          | "tuesday"
          | "tue"
          | "wednesday"
          | "wed"
          | "thursday"
          | "thu"
          | "friday"
          | "fri"
          | "saturday"
          | "sat"
          | "sunday"
          | "sun" = "sun"

    Returns number