
November 20th, 2012, 07:22 AM
|
|
|
|
C# and VB difference
Hi all, using vb.net the following works:
Code:
Dim datecreated As Date
datecreated = elemList(i).Attributes("ows_Created").Value
but when using C#:
Code:
DateTime datecreated;
datecreated = elemList[i].Attributes["ows_Created"].Value;
I get an error Quote: | Cannot implicitly convert type 'string' to 'System.DateTime' |
can anybody help? thanks
|