Hi,
I have copied the code exactly as it is in the demo "live xml" but it is giving me errors on the parsing date. String exception on these methods:
I cannot understand what is wrong. The same code is working in your demo and there are not errors in my code being it the exact copy. I am going mad with this!
Files are here. I would appreciate your help.
Thanks a lot.
Felice
I have copied the code exactly as it is in the demo "live xml" but it is giving me errors on the parsing date. String exception on these methods:
protected string GetDayOfWeek(string dateTimeString) { DateTime result = DateTime.Parse(dateTimeString); string dayOfWeek = Enum.GetName(typeof(DayOfWeek), result.DayOfWeek); return dayOfWeek; } protected string GetTimeOnly(string dateValue) { return System.DateTime.Parse(dateValue).ToString("hh:mm"); } protected string GetDateOnly(string dateValue) { return System.DateTime.Parse(dateValue).ToString("ddd, MMM d, yyyy"); }I cannot understand what is wrong. The same code is working in your demo and there are not errors in my code being it the exact copy. I am going mad with this!
Files are here. I would appreciate your help.
Thanks a lot.
Felice