Update date parsing, fixes issue #3.