weekday property

int weekday

The day of the week شنبه..جمعه.

a week starts with شنبه, which has the value 1.

var moonLanding = DateTime.parse('1969-07-20 20:18:04Z').toJDate();
assert(moonLanding.weekday == 2);

Implementation

int get weekday => _weekday + 1;