Use strptime in str2datetime for better validation
Merge pull request #1 from shunyata/master

Use strptime in str2datetime