0
我有收集訂單,我想要月份和年份的變量「createdAt」;我在應用程序中使用momentsjs。我該如何取月份變量的值CreatedAt
Orders = new Mongo.Collection('orders');
Orders.attachSchema(new SimpleSchema({
'taxtotal':{type:Number},
'subtotal':{type:Number},
createdAt:{
type: Date,
autoValue: function() {
return new Date()
}
},
createdBy: {
type: String,
autoValue: function() {
return this.userId
}
}
}));
您到目前爲止嘗試過什麼? – VincenzoC
你正在尋找標籤來顯示給用戶或你可以編程的值? – zim
你好,我需要:https://stackoverflow.com/questions/45464098/meteor-js-how-to-sum-records-per-month-of-the-same-collection/45464409#45464409 –