我想用飞镖获取当前日期。
我想要的代码:-
//I want something like this var day = DateTime.getCurrentDay();
输出:-
Tuesday
使用此模式
DateFormat('EEEE').format(yourDate);
// DateTime.now() or any DateTime format can be used. DateFormat('EEEE').format(DateTime.now());