Moved `dateParse` intot the lib module.