I to use datepicker addon
on simple schema and autoform
calculateType: {
type: String,
autoform: {
type: "select-radio-inline",
options: function () {
return [
{label: "2013", value: 2013},
{label: "2014", value: 2014},
];
}
}
},
fromDate: {
type: Date,
defaultValue: moment().toDate(),
autoform: {
afFieldInput: {
type: 'bootstrap-datetimepicker',
dateTimePickerOptions: {
format: 'DD/MM/YYYY'
}
}
}
}
- If
calculateType
change to 2013, date format toDD/MM/YYYY
- If
calculateType
change to 2014, date format toDD/MM/YYYY HH:mm:ss
Please help me.