own copy of ConvertDate function for llfuse4js