I am trying to convert data string to time:

import Data.Time
import Data.Time.Format
import Locale

ds = "10/11/2009 7:04:28 PM"
t = parseTime defaultTimeLocale "%D %H:%M:%S  %p" ds :: Maybe UTCTime

and get "Nothing".
What is wrong?

Thanks !
Dmitri.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to