Replaces strptime(., "%Y-%m-%d", .) with own impl

strptime() is not available on Windows.