0
私は回収オーダーを持っています。月と年の変数 "createdAt"を受け取りたいと思います。私はアプリでmomentsjsを使用します。変数の月の値をどのように取ることができますか?
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 –