Created
August 26, 2019 20:27
-
-
Save giuliohome/9a8f856c418410424a1ca04ca6dfa062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from IE datepicker to F#: you tried Globalization, ParseExact, etc... without luck | |
// and this does the trick ;-) | |
let filterDate (str:string) : string = | |
new string (str.ToCharArray() | |
|> Array.filter(fun c -> int c < 128)) | |
// used for example in | |
let dateFrom = DateTime.Parse(filterDate dateFromStr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment