Skip to content

Instantly share code, notes, and snippets.

@atifaziz
Created November 19, 2010 22:19
Show Gist options
  • Save atifaziz/707300 to your computer and use it in GitHub Desktop.
Save atifaziz/707300 to your computer and use it in GitHub Desktop.
Microsoft (R) F# 2.0 Interactive build 2.0.0.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> open System.Xml;;
> let d = XmlConvert.ToDateTime("2010-11-10", XmlDateTimeSerializationMode.Local);;
System.FormatException: Invalid format string
at System.DateTime.ParseExact (System.String s, System.String[] formats, IFormatProvider provider, DateTimeStyles style) [0x00000] in <filename unknown>:0
at System.Xml.XmlConvert.ToDateTime (System.String s, System.String[] formats, DateTimeStyles style) [0x00000] in <filename unknown>:0
at System.Xml.XmlConvert.ToDateTime (System.String s, System.String[] formats) [0x00000] in <filename unknown>:0
at System.Xml.XmlConvert.ToDateTime (System.String value, XmlDateTimeSerializationMode mode) [0x00000] in <filename unknown>:0
at <StartupCode$FSI_0004>.$FSI_0004.main@ () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod*,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Stopped due to error
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment