@unclepaul/allcountjs
Version:
The open source framework for rapid business application development with Node.js
16 lines (12 loc) • 326 B
JavaScript
var moment = require('moment');
exports.format = function (date) {
return date.toString();
};
exports.now = function() {
return new Date();
};
exports.nowDate = function () {
var now = new Date();
return new Date(now.getFullYear(), now.getMonth(), now.getDate());
};
exports.moment = moment;