Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlConvert.cs')
-rwxr-xr-xmcs/class/System.XML/System.Xml/XmlConvert.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlConvert.cs b/mcs/class/System.XML/System.Xml/XmlConvert.cs
index 5db6afcfe87..5c3e278b9b4 100755
--- a/mcs/class/System.XML/System.Xml/XmlConvert.cs
+++ b/mcs/class/System.XML/System.Xml/XmlConvert.cs
@@ -60,25 +60,25 @@ namespace System.Xml {
public static char ToChar(string s)
{
- return char.Parse(s);
+ return Char.Parse(s);
}
- [MonoTODO]
public static DateTime ToDateTime(string s)
{
- throw new NotImplementedException();
+ return DateTime.Parse(s);
}
- [MonoTODO]
public static DateTime ToDateTime(string s, string format)
{
- throw new NotImplementedException();
+ DateTimeFormatInfo d = new DateTimeFormatInfo();
+ d.FullDateTimePattern = format;
+ return DateTime.Parse(s, d);
}
-
+
[MonoTODO]
public static DateTime ToDateTime(string s, string[] formats)
{
- throw new NotImplementedException();
+ return DateTime.Parse(s);
}
public static Decimal ToDecimal(string s)