You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the returned date is invalid, than the boolean flag must be false.
Must have the same behavoir as on the interactive shell.
Repro code
open System
let validGermanDate = "31.10.2020"
let invalidAmericanDate = "13/1/2020"
//let d = invalidAmericanDate
let d = validGermanDate
let r, date = System.DateTime.TryParse d
if r then
printfn "Result: %b but the date is: %s -> this not good!" r (date.ToShortDateString ())
else
printfn "Result: %b than the date is: %s -> this is ok!" r (date.ToShortDateString ())
Expected and actual results
If TryParse gives back a true than the date must be usable.
On the interactive shell TryParse behaves correct!
Description
If the returned date is invalid, than the boolean flag must be false.
Must have the same behavoir as on the interactive shell.
Repro code
Expected and actual results
If TryParse gives back a true than the date must be usable.
On the interactive shell TryParse behaves correct!
Related information
Reproducible on REPL with the given code.
The text was updated successfully, but these errors were encountered: