allowing customized year parsing

Fixes #1439