C# and xml: xs:dateTime and DateTime comparesion

robypedia

New Member
I have an xml object 'Date' type of xs:dateTime:\[code\]<MyTable><Date>2012-06-18T:00:00:00</Date>...[some other data]...</MyTable>\[/code\]I'm using DataSet to get data from my xml.I want to select all rows from table where Date >= given date:\[code\]MyTable.Select("Date >" + givenDate.ToString());\[/code\]How in this way I should convert givenDate to string? Using mask? Or it's enough to simply use givenDate.ToString() ?
 
Back
Top