请帮助我使用前一天的名字c#.我试过这个,但它不起作用.
c#
string yesterday-name = System.DateTime.Now.DayOfWeek(-1).ToString();
c# datetime
c# ×1
datetime ×1