Rename this function to createDateFromFormat to be consistent with our PHP Code Style Guide; also missing tests.