introduced a temporary method specifically for the try in pancanga-nodejs
incomplete implementation of toGregorianDate