tasks/lib/utils.js
function(dt) {
		dt = dt || new Date();
		return [dt.getFullYear(),
			padNumber(dt.getMonth() + 1),
			padNumber(dt.getDate()),
			padNumber(dt.getHours()),
			padNumber(dt.getMinutes()),
			padNumber(dt.getSeconds())
		].join('');
	}
function(dt) {
		dt = dt || new Date();
		return [dt.getFullYear(),
			padNumber(dt.getMonth() + 1),
			padNumber(dt.getDate()),
			padNumber(dt.getHours()),
			padNumber(dt.getMinutes()),
			padNumber(dt.getSeconds())
		].join('');
	}
function ( dt ) { dt = dt || new Date ( ) ; return [ dt . getFullYear ( ) , padNumber ( dt . getMonth ( ) + 1 ) , padNumber ( dt . getDate ( ) ) , padNumber ( dt . getHours ( ) ) , padNumber ( dt . getMinutes ( ) ) , padNumber ( dt . getSeconds ( ) ) ] . join ( '' ) ; }
Returns string timestamp of given date in "yyyymmddhhss" format
@param  {Date} dt Source date. If not specified, current date is used
@return {String}
Returns string timestamp of given date in yyyymmddhhss format