ich will ein datum das ich von einem xml attribut erhalte in ein Date objekt speichern was aber nicht funzt. ich bekomme immer "typen unverträglich obwohl ich Cdate verwende.
xmil attribute schaun so aus
Code:
Dim nodes As IXMLDOMNodeList Dim einNode As IXMLDOMNode Dim childNode As IXMLDOMNode '--- Dim catalogid$ Dim created As Date Dim modified As Date For Each einNode In xmlObj.documentElement.selectSingleNode(rootnode$).childNodes catalogid = einNode.Attributes(0).nodeTypedValue created = CDate(DateValue(einNode.Attributes.getNamedItem("created").nodeTypedValue)) 'modified = einNode.Attributes.getNamedItem("modified").NodeValue 'Exit For Next
Code:
<catalog id="4f52cc971c356481011c379e4f730001" created="2008-09-06 14:23:53.0" modified="2009-08-22 10:55:59.533" countryCode="AT" withdrawn="false">
Comment