Function parseStringDayOfWeekValue

  • Parses a string into a CronDayOfWeekValue.

    Example

    parseStringDayOfWeekValue("5"); // 5
    parseStringDayOfWeekValue("FRI"); // "FRI"
    parseStringDayOfWeekValue("fri"); // "FRI"
    parseStringDayOfWeekValue("8"); // undefined
    parseStringDayOfWeekValue("IDK"); // undefined

    Returns

    A CronDayOfWeekValue or undefined if invalid.

    Parameters

    • input: string

    Returns Maybe<CronDayOfWeekValue>