Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
const moment = require('moment');

/**
 * Convert string date to Unix Epoch time in seconds.
 * @param {string} endDate
 */
function convertDateToUTCTimestampInSeconds(endDate) {
  const convertedDate = moment(endDate).unix();
  return convertedDate;
}

module.exports = { convertDateToUTCTimestampInSeconds };