Hi is it possible to save data in the database MongoDB using shcmatu set in SimpleSchema:
start: { type: Date, label: "Data rozpoczęcia wydarzenia", optional: true }, end: { type: Date, label: "Data zakończenia wydarzenia", optional: true },
generated by the package “tsega:bootstrap3-datetimepicker”. Code in file js
Template.newWydarzenie.onRendered(function() {
this.$('.datetimepicker').datetimepicker({
minDate: 'now'
});
});
Now the data record as a “type String,” the change “type” on the “Date” receives the following error on the server side:
“Match error: Data rozpoczęcia wydarzenia must be a Date”