我有一个 xs:dateTime 的 xml 对象“日期”类型:
<MyTable>
<Date>2012-06-18T:00:00:00</Date>
...[some other data]...
</MyTable>
我正在使用 DataSet 从我的 xml 中获取数据。
我想从表中选择日期>=给定日期的所有行:
MyTable.Select("Date >" + givenDate.ToString());
我应该如何将 givenDate 转换为字符串?用面膜?或者仅仅使用 givenDate.ToString() 就足够了?