system.datetime をデータメンバーとして使用すると、datagridview で奇妙な形式が返されます。
私のデータメンバーは次のようになります。
[DataMember(Name = "TimeAdded")]
public DateTime TimeAdded;
そして、私の AddStudent は次のようになります。
public void AddStudent(Student student)
{
student.StudentID = (++eCount).ToString();
student.TimeAdded = DateTime.Now; // not important more so the method to get the correct format
students.Add(student);
}
私が得る出力は2012-04-12T03:10:42.8138255+01:00
、これを修正する方法はありますか?