using System.Text.RegularExpressions;
using System.DateTime;
DateTime returnedDate = DateTime.Now();
它給我的錯誤:使用一個命名空間指令只能應用於命名空間
A using namespace directive can only be applied to namespaces;
'System.DateTime' is a type not a namespace (line 1, pos 1)
哪裏是我的錯?
是的,這是不是Java。您可以導入命名空間,而不是類; p – leppie