Skip to content

Calling getWeek method throws data type exception #5

Description

@MzeeAlii

Calling dateUtil.getWeek() throws an error with a message "type 'double' is not a subtype of type 'int'".

A portion of code that raises the exception is as follows:

DateTime today = DateTime.now();
var todayWeek = dateUtil.getWeek(today.month, today.day, today.year);
print('todayWeek=' + todayWeek.toString());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions