Make dateval cal support gnu and bsd 'date'