require('date-utils'); var AWS = require('aws-sdk'); var s3UploadTimestamp = new AWS.S3.ManagedUpload({ queueSize: 1, params: { Bucket: config.S3_BUCKET_NAME, Key: config.S3_DIRECTORY + "/s3backup", Body: (new Date()).toFormat("YYYY:MM:DD HH24:MI:SS") } }); s3UploadTimestamp.send(function (err, data) { if (err) { console.error(err); } });