Hi
I want to convert XML Schema DateTime type to .net long type like as followsfrom dateTime: “2006-01-27T13:47:31.321-05:00” to
.Net long datatye: “20060127134731321”
I tried with convert members... but Iam not able to find that.
Thanks
Use:
str.Substring(0, str.LastIndexOf('-') + 1).Replace("-", "").Replace("T", "").Replace(":", "").Replace(".","");
Cheers,Dimitre Novatchev
or
DateTime.Parse(str).Ticks;